Commit 4064efdc authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

cmd: Fix a memory leak (Valgrind).

parent 27fb2263
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment