fix a memory leak

svn path=/trunk/; revision=28084
This commit is contained in:
Christoph von Wittich 2007-08-01 22:41:35 +00:00
parent 5440600381
commit 953da5af6e

View file

@ -41,6 +41,7 @@ INT CommandChcp (LPTSTR cmd, LPTSTR param)
/* display active code page number */
LoadString(CMD_ModuleHandle, STRING_CHCP_ERROR1, szMsg, RC_STRING_MAX_SIZE);
ConErrPrintf(szMsg, InputCodePage);
freep (arg);
return 0;
}
@ -50,6 +51,7 @@ INT CommandChcp (LPTSTR cmd, LPTSTR param)
LoadString(CMD_ModuleHandle, STRING_ERROR_INVALID_PARAM_FORMAT, szMsg, RC_STRING_MAX_SIZE);
ConErrPrintf(szMsg, param);
nErrorLevel = 1;
freep (arg);
return 1;
}