Paul Vriens : cmd: Fix a memory leak (Valgrind).
Alexandre Julliard
julliard at winehq.org
Tue Feb 23 11:17:21 CST 2010
Module: wine
Branch: master
Commit: 4064efdc27f66076aff78bcf92da7b9f9b078d61
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4064efdc27f66076aff78bcf92da7b9f9b078d61
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Mon Feb 22 21:29:18 2010 +0100
cmd: Fix a memory leak (Valgrind).
---
programs/cmd/wcmdmain.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index e94cb3b..f97a1fd 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -2174,6 +2174,7 @@ void WCMD_free_commands(CMD_LIST *cmds) {
CMD_LIST *thisCmd = cmds;
cmds = cmds->nextcommand;
HeapFree(GetProcessHeap(), 0, thisCmd->command);
+ HeapFree(GetProcessHeap(), 0, thisCmd->redirects);
HeapFree(GetProcessHeap(), 0, thisCmd);
}
}
More information about the wine-cvs
mailing list