Author: cwittich
Date: Thu Aug 2 02:41:35 2007
New Revision: 28084
URL:
http://svn.reactos.org/svn/reactos?rev=28084&view=rev
Log:
fix a memory leak
Modified:
trunk/reactos/base/shell/cmd/chcp.c
Modified: trunk/reactos/base/shell/cmd/chcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/chcp.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/chcp.c (original)
+++ trunk/reactos/base/shell/cmd/chcp.c Thu Aug 2 02:41:35 2007
@@ -41,6 +41,7 @@
/* 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 @@
LoadString(CMD_ModuleHandle, STRING_ERROR_INVALID_PARAM_FORMAT, szMsg,
RC_STRING_MAX_SIZE);
ConErrPrintf(szMsg, param);
nErrorLevel = 1;
+ freep (arg);
return 1;
}