22 Apr
2021
22 Apr
'21
10:14 a.m.
Gijs Vermeulen <gijsvrm(a)gmail.com> wrote:
+ len = sizeof(*si) + symbol->MaxNameLen * sizeof(WCHAR); + if (!(si = HeapAlloc(GetProcessHeap(), 0, len))) return FALSE; + + len = WideCharToMultiByte(CP_ACP, 0, name, -1, NULL, 0, NULL, NULL); + if (!(tmp = HeapAlloc(GetProcessHeap(), 0, len))) return FALSE;
'si' is leaked on error path. -- Dmitry.