fix mem leak

This commit is contained in:
yihaoDeng 2024-09-20 10:22:51 +08:00
parent 7dc616194e
commit 7c987fa740
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ static FORCE_INLINE void uvStartSendRespImpl(SSvrRespMsg* smsg) {
int32_t ret = uv_write(req, (uv_stream_t*)pConn->pTcp, pBuf, bufNum, uvOnSendCb);
if (ret != 0) {
tError("conn %p failed to write data, reason:%s", pConn, tstrerror(TSDB_CODE_OUT_OF_MEMORY), uv_err_name(ret));
tError("conn %p failed to write data, reason:%s", pConn, uv_err_name(ret));
pConn->broken = true;
while (!QUEUE_IS_EMPTY(&pWreq->node)) {
queue* head = QUEUE_HEAD(&pWreq->node);