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:
Nikolay Sivov 2019-01-08 18:18:33 +03:00 committed by Alexandre Julliard
parent ff6eadc6ae
commit 6bab6ce8e1
1 changed files with 0 additions and 1 deletions

View File

@ -1244,7 +1244,6 @@ IStream * WINAPI SHOpenRegStream2W(HKEY hKey, const WCHAR *subkey, const WCHAR *
}
}
heap_free(buff);
if (hStrKey)
RegCloseKey(hStrKey);