cabinet: Fix some memory leaks
Andrew Talbot
andrew.talbot at talbotville.com
Thu Sep 13 18:15:46 CDT 2007
Changelog:
cabinet: Fix some memory leaks.
diff -urN a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c
--- a/dlls/cabinet/cabinet_main.c 2007-09-02 09:31:54.000000000 +0100
+++ b/dlls/cabinet/cabinet_main.c 2007-09-13 14:38:02.000000000 +0100
@@ -229,7 +229,12 @@
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)
More information about the wine-patches
mailing list