mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +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 */
|
/* display active code page number */
|
||||||
LoadString(CMD_ModuleHandle, STRING_CHCP_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_CHCP_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
||||||
ConErrPrintf(szMsg, InputCodePage);
|
ConErrPrintf(szMsg, InputCodePage);
|
||||||
|
freep (arg);
|
||||||
return 0;
|
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);
|
LoadString(CMD_ModuleHandle, STRING_ERROR_INVALID_PARAM_FORMAT, szMsg, RC_STRING_MAX_SIZE);
|
||||||
ConErrPrintf(szMsg, param);
|
ConErrPrintf(szMsg, param);
|
||||||
nErrorLevel = 1;
|
nErrorLevel = 1;
|
||||||
|
freep (arg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue