Nikolay Sivov : mshtml: Fix a memory leak (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 11 08:36:43 CST 2015


Module: wine
Branch: master
Commit: a40bca8866a83d29bc90a2a44cdd1ce81feac4a1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a40bca8866a83d29bc90a2a44cdd1ce81feac4a1

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Nov 10 23:30:59 2015 +0300

mshtml: Fix a memory leak (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)




More information about the wine-cvs mailing list