Commit 066ccd12 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

mshtml: Fix memory leak (found by Smatch).

parent 2dd29b10
......@@ -236,8 +236,10 @@ static BOOL install_from_registered_dir(void)
res = RegQueryValueExA(hkey, "GeckoCabDir", NULL, &type, (PBYTE)file_name, &size);
}
RegCloseKey(hkey);
if(res != ERROR_SUCCESS || type != REG_SZ)
if(res != ERROR_SUCCESS || type != REG_SZ) {
heap_free(file_name);
return FALSE;
}
strcat(file_name, GECKO_FILE_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment