cabinet: Fix memory leak (found by Smatch).
This commit is contained in:
parent
0e4adae973
commit
2dd29b107e
|
@ -229,7 +229,11 @@ static INT_PTR fdi_notify_extract(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pf
|
|||
file_in_list(pDestination->FileList, pfdin->psz1, &node);
|
||||
|
||||
if (node && !node->DoExtract)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, szFullPath);
|
||||
HeapFree(GetProcessHeap(), 0, szDirectory);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* create the destination directory if it doesn't exist */
|
||||
if (GetFileAttributesA(szDirectory) == INVALID_FILE_ATTRIBUTES)
|
||||
|
|
Loading…
Reference in New Issue