fix invalid free

This commit is contained in:
yihaoDeng 2022-11-08 22:09:58 +08:00
parent 7b30a6ee23
commit 1ed333140b
1 changed files with 1 additions and 3 deletions

View File

@ -265,9 +265,7 @@ static void cliReleaseUnfinishedMsg(SCliConn* conn) {
if (msg != NULL && msg->ctx != NULL && msg->ctx->ahandle != (void*)0x9527) {
if (conn->ctx.freeFunc != NULL && msg->ctx->ahandle != NULL) {
conn->ctx.freeFunc(msg->ctx->ahandle);
continue;
}
if (msg->ctx->ahandle != NULL && pTransInst->destroyFp != NULL) {
} else if (msg->ctx->ahandle != NULL && pTransInst->destroyFp != NULL) {
tDebug("%s conn %p destroy unfinished ahandle %p", CONN_GET_INST_LABEL(conn), conn, msg->ctx->ahandle);
pTransInst->destroyFp(msg->ctx->ahandle);
}