uninstaller: Fix a leak.

This commit is contained in:
Hans Leidekker 2010-12-24 09:37:51 +01:00 committed by Alexandre Julliard
parent 60001e1c67
commit 458fcf4aa7
1 changed files with 6 additions and 2 deletions

View File

@ -209,8 +209,12 @@ static int FetchFromRootKey(HKEY root)
command = HeapAlloc(GetProcessHeap(), 0, uninstlen);
RegQueryValueExW(hkeyApp, UninstallCommandlineW, 0, 0, (LPBYTE)command, &uninstlen);
}
else continue;
else
{
RegCloseKey(hkeyApp);
sizeOfSubKeyName = 255;
continue;
}
numentries++;
entries = HeapReAlloc(GetProcessHeap(), 0, entries, numentries*sizeof(uninst_entry));
entries[numentries-1].root = root;