mshtml: Fix a memory leak (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-11-10 23:30:59 +03:00 committed by Alexandre Julliard
parent 91ed2a81c1
commit a40bca8866
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ static void set_environment(LPCWSTR gre_path)
strcpyW(path+len, gre_path); strcpyW(path+len, gre_path);
SetEnvironmentVariableW(pathW, path); SetEnvironmentVariableW(pathW, path);
} }
heap_free(path);
} }
static BOOL load_xul(const PRUnichar *gre_path) static BOOL load_xul(const PRUnichar *gre_path)