From a40bca8866a83d29bc90a2a44cdd1ce81feac4a1 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 10 Nov 2015 23:30:59 +0300 Subject: [PATCH] mshtml: Fix a memory leak (Coverity). Signed-off-by: Nikolay Sivov Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/nsembed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 93f4277fdf5..866b712975b 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)