cmd: Replace malloc() with HeapAlloc().
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index bcdf840..0e99f52 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -1033,7 +1033,7 @@
   if (conditionTRUE && firstcmd && *firstcmd) {
     WCHAR *command = WCMD_strdupW(firstcmd);
     WCMD_execute (firstcmd, (*cmdList)->redirects, variable, value, cmdList);
-    free (command);
+    HeapFree(GetProcessHeap(), 0, command);
   }