提交 6b3d0a18 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

free pReqMsg if outType is not 0

上级 0568c10c
...@@ -603,6 +603,9 @@ static void rpcReleaseConn(SRpcConn *pConn) { ...@@ -603,6 +603,9 @@ static void rpcReleaseConn(SRpcConn *pConn) {
rpcFreeMsg(pConn->pRspMsg); // it may have a response msg saved, but not request msg rpcFreeMsg(pConn->pRspMsg); // it may have a response msg saved, but not request msg
pConn->pRspMsg = NULL; pConn->pRspMsg = NULL;
if (pConn->pReqMsg) rpcFreeCont(pConn->pReqMsg); if (pConn->pReqMsg) rpcFreeCont(pConn->pReqMsg);
} else {
if (pConn->outType && pConn->pReqMsg)
rpcFreeCont(pConn->pReqMsg);
} }
// memset could not be used, since lockeBy can not be reset // memset could not be used, since lockeBy can not be reset
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册