fix mem leak
This commit is contained in:
parent
51370c2c57
commit
6752f7690c
|
@ -1296,7 +1296,7 @@ int32_t cliBatchSend(SCliConn* pConn) {
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
tError("%s conn %p failed to send msg, reason:%s", CONN_GET_INST_LABEL(pConn), pConn, uv_err_name(ret));
|
tError("%s conn %p failed to send msg, reason:%s", CONN_GET_INST_LABEL(pConn), pConn, uv_err_name(ret));
|
||||||
freeWReqToWQ(&pConn->wq, req->data);
|
freeWReqToWQ(&pConn->wq, req->data);
|
||||||
transUnrefCliHandle(pConn);
|
(void)transUnrefCliHandle(pConn);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1378,7 +1378,7 @@ _exception1:
|
||||||
return code;
|
return code;
|
||||||
|
|
||||||
_exception2:
|
_exception2:
|
||||||
transUnrefCliHandle(conn);
|
(void)transUnrefCliHandle(conn);
|
||||||
tError("%s conn %p failed to do connect, reason:%s", transLabel(pInst), conn, tstrerror(code));
|
tError("%s conn %p failed to do connect, reason:%s", transLabel(pInst), conn, tstrerror(code));
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue