misexec: Fix a memory leak

Andrew Talbot andrew.talbot at talbotville.com
Mon Oct 15 14:29:19 CDT 2007


Changelog:
    misexec: Fix a memory leak.

diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c
index 71e81c8..bdb1b90 100644
--- a/programs/msiexec/msiexec.c
+++ b/programs/msiexec/msiexec.c
@@ -487,6 +487,7 @@ static BOOL process_args_from_reg( LPWST
 			process_args(buf, pargc, pargv);
 			ret = TRUE;
 		}
+		HeapFree(GetProcessHeap(), 0, buf);
 	}
 	RegCloseKey(hkeyArgs);
 	return ret;



More information about the wine-patches mailing list