- Properly free a buffer allocated during "copy" command. Fixes cmd.exe crash when...
authorAleksey Bragin <aleksey@reactos.org>
Thu, 19 Feb 2009 12:51:57 +0000 (12:51 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 19 Feb 2009 12:51:57 +0000 (12:51 +0000)
svn path=/trunk/; revision=39684

reactos/base/shell/cmd/copy.c

index e01b725..d451fea 100644 (file)
@@ -232,7 +232,7 @@ copy (TCHAR source[MAX_PATH],
         {
             ConOutResPuts(STRING_COPY_ERROR3);
 
-            cmd_free (buffer);
+            VirtualFree (buffer, 0, MEM_RELEASE);
             CloseHandle (hFileDest);
             CloseHandle (hFileSrc);
             nErrorLevel = 1;