[PATCH 2/2] Fix a memory leak
Paul Vriens
Paul.Vriens.Wine at gmail.com
Mon Feb 22 14:29:18 CST 2010
---
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);
}
}
--
1.6.2.5
--------------090108090601000102030107--
More information about the wine-patches
mailing list