[PATCH] shcore: Fix path string leak for file streams (Valgrind)

Nikolay Sivov nsivov at codeweavers.com
Thu Dec 13 18:59:07 CST 2018


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

diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c
index a544f27006..ac625fb746 100644
--- a/dlls/shcore/main.c
+++ b/dlls/shcore/main.c
@@ -839,6 +839,7 @@ static ULONG WINAPI filestream_Release(IStream *iface)
     if (!refcount)
     {
         CloseHandle(stream->u.file.handle);
+        heap_free(stream->u.file.path);
         heap_free(stream);
     }
 
-- 
2.19.2




More information about the wine-devel mailing list