[ros-diffs] [cwittich] 28084: fix a memory leak
cwittich at svn.reactos.org
cwittich at svn.reactos.org
Thu Aug 2 00:41:35 CEST 2007
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=28084&r1=28083&r2=28084&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list