[PATCH] shcore: Fix double free on error path (Coverity).

Nikolay Sivov nsivov at codeweavers.com
Tue Jan 8 09:18:33 CST 2019


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/shcore/main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c
index ac625fb746..973b7c7a03 100644
--- a/dlls/shcore/main.c
+++ b/dlls/shcore/main.c
@@ -1244,7 +1244,6 @@ IStream * WINAPI SHOpenRegStream2W(HKEY hKey, const WCHAR *subkey, const WCHAR *
         }
     }
 
-    heap_free(buff);
     if (hStrKey)
         RegCloseKey(hStrKey);
 
-- 
2.20.1




More information about the wine-devel mailing list