From ec9042a6e85dbfb586990fc841598bfbe4109777 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 10 Nov 2020 22:53:23 +0800 Subject: [PATCH] [TD-1943]: fix memory leak. --- src/client/src/tscServer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 46b4de259b..3c97bf6fa2 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -365,7 +365,7 @@ void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) { memcpy(pRes->pRsp, rpcMsg->pCont, pRes->rspLen); } } else { - pRes->pRsp = NULL; + taosTFree(pRes->pRsp); } /* -- GitLab