shcore: Fix double free on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff6eadc6ae
commit
6bab6ce8e1
|
@ -1244,7 +1244,6 @@ IStream * WINAPI SHOpenRegStream2W(HKEY hKey, const WCHAR *subkey, const WCHAR *
|
|||
}
|
||||
}
|
||||
|
||||
heap_free(buff);
|
||||
if (hStrKey)
|
||||
RegCloseKey(hStrKey);
|
||||
|
||||
|
|
Loading…
Reference in New Issue