Commit 7b69313b authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

hhctrl: Fix memory leak on error path in resolve_filename (scan-build).

parent 2cabb3f7
......@@ -148,7 +148,14 @@ static BOOL resolve_filename(const WCHAR *env_filename, WCHAR *fullname, DWORD b
free(filename);
return (GetFileAttributesW(fullname) != INVALID_FILE_ATTRIBUTES);
if (GetFileAttributesW(fullname) == INVALID_FILE_ATTRIBUTES)
{
if (window) free(*window);
if (index) free(*index);
return FALSE;
}
return TRUE;
}
/******************************************************************
......
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