mshtml: Fix memory leak (found by Smatch).

This commit is contained in:
Rico Schüller 2007-12-31 00:51:04 +01:00 committed by Alexandre Julliard
parent 2dd29b107e
commit 066ccd1275

View file

@ -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);