Sync to Wine-20050111:
Michael Stefaniuc <mstefani(a)redhat.de>
Missing HeapFree's + 1 LocalFree (found by smatch).
Modified: trunk/reactos/lib/cabinet/cabinet_main.c
_____
Modified: trunk/reactos/lib/cabinet/cabinet_main.c
--- trunk/reactos/lib/cabinet/cabinet_main.c 2005-01-11 21:36:04 UTC
(rev 12929)
+++ trunk/reactos/lib/cabinet/cabinet_main.c 2005-01-11 21:37:29 UTC
(rev 12930)
@@ -121,8 +121,10 @@
TRACE("extracting to dir: %s\n", debugstr_a(dir));
/* FIXME: what to do on failure? */
- if (!process_cabinet(what, dir, FALSE, FALSE, dest))
+ if (!process_cabinet(what, dir, FALSE, FALSE, dest)) {
+ LocalFree(dir);
return E_OUTOFMEMORY;
+ }
LocalFree(dir);