Skip to content

Commit 1b77a68

Browse files
committed
fixed:web socket memory malloc is incorrect
1 parent f19fc34 commit 1b77a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_Net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ bool XEngine_SendMsg(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, int nMsgLen,
177177
}
178178
else
179179
{
180-
XCHAR* ptszCodecBuffer = (XCHAR*)malloc(XENGINE_MEMORY_SIZE_MAX);
180+
XCHAR* ptszCodecBuffer = (XCHAR*)ManagePool_Memory_Alloc(xhMemPool, XENGINE_MEMORY_SIZE_MAX);
181181
if (NULL == ptszCodecBuffer)
182182
{
183183
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X("客户端:%s,网络类型:%d 发送数据失败,内存申请失败,错误码:%d"), lpszClientAddr, nNetType, errno);

0 commit comments

Comments
 (0)