Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[reactos.git] / base / shell / cmd / misc.c
index 45a12e5..c94fce8 100644 (file)
@@ -194,6 +194,7 @@ BOOL add_entry (LPINT ac, LPTSTR **arg, LPCTSTR entry)
     *arg = cmd_realloc (oldarg, (*ac + 2) * sizeof (LPTSTR));
     if (NULL == *arg)
     {
+        cmd_free (q);
         *arg = oldarg;
         return FALSE;
     }