Commit 2dd29b10 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

cabinet: Fix memory leak (found by Smatch).

parent 0e4adae9
......@@ -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)
......
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