fix resource leak in mnodeShow.c

[TD-446]
This commit is contained in:
Shuduo Sang 2020-05-29 11:43:27 +08:00
parent 6a7da09d7f
commit 85087426bb
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ static int32_t mnodeProcessShowMsg(SMnodeMsg *pMsg) {
pShow = mnodeSaveShowObj(pShow, showObjSize);
if (pShow == NULL) {
mnodeFreeShowObj(pShow);
rpcFreeCont(pShowRsp);
return TSDB_CODE_SERV_OUT_OF_MEMORY;
}
pShowRsp->qhandle = htobe64((uint64_t) pShow);