[PATCH] mshtml: Fix a memory leak (Coverity)

Nikolay Sivov nsivov at codeweavers.com
Tue Nov 10 14:30:59 CST 2015


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

diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
index 93f4277..866b712 100644
--- a/dlls/mshtml/nsembed.c
+++ b/dlls/mshtml/nsembed.c
@@ -481,6 +481,7 @@ static void set_environment(LPCWSTR gre_path)
         strcpyW(path+len, gre_path);
         SetEnvironmentVariableW(pathW, path);
     }
+    heap_free(path);
 }
 
 static BOOL load_xul(const PRUnichar *gre_path)
-- 
2.6.2




More information about the wine-patches mailing list