Merge pull request #2073 from taosdata/hotfix/sangshuduo/fix-resource-leak-in-mnodeShow.c
fix resource leak in mnodeShow.c
This commit is contained in:
commit
04e86597a4
|
|
@ -132,6 +132,7 @@ static int32_t mnodeProcessShowMsg(SMnodeMsg *pMsg) {
|
|||
int32_t size = sizeof(SCMShowRsp) + sizeof(SSchema) * TSDB_MAX_COLUMNS + TSDB_EXTRA_PAYLOAD_SIZE;
|
||||
SCMShowRsp *pShowRsp = rpcMallocCont(size);
|
||||
if (pShowRsp == NULL) {
|
||||
mnodeFreeShowObj(pShow);
|
||||
return TSDB_CODE_SERV_OUT_OF_MEMORY;
|
||||
}
|
||||
pShowRsp->qhandle = htobe64((uint64_t) pShow);
|
||||
|
|
|
|||
Loading…
Reference in New Issue