fix mem leak

This commit is contained in:
yihaoDeng 2022-04-18 23:20:45 +08:00
parent dcf06061cd
commit ed41011863
1 changed files with 1 additions and 2 deletions

View File

@ -471,8 +471,7 @@ static void addConnToPool(void* pool, SCliConn* conn) {
assert(!QUEUE_IS_EMPTY(&plist->conn));
}
static void cliAllocRecvBufferCb(uv_handle_t* handle, size_t suggested_size, uv_buf_t* buf) {
SCliConn* conn = handle->data;
tError("oh no %p", conn);
SCliConn* conn = handle->data;
SConnBuffer* pBuf = &conn->readBuf;
transAllocBuffer(pBuf, buf);
}