mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
fix a memory leak
svn path=/trunk/; revision=28084
This commit is contained in:
parent
5440600381
commit
953da5af6e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue