cabinet: Fix memory leak (found by Smatch).

This commit is contained in:
Rico Schüller 2007-12-31 00:24:26 +01:00 committed by Alexandre Julliard
parent 0e4adae973
commit 2dd29b107e

View file

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