From 14e46d67569059d2e469aaff7054046d05ee10d3 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 30 Jul 2024 13:08:09 +0800 Subject: [PATCH] refactor return error --- source/dnode/mgmt/mgmt_dnode/src/dmHandle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index b6a2b7509e..2942a85f68 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -167,6 +167,7 @@ void dmSendStatusReq(SDnodeMgmt *pMgmt) { dError("failed to serialize status req since %s", tstrerror(contLen)); return; } + void *pHead = rpcMallocCont(contLen); contLen = tSerializeSStatusReq(pHead, contLen, &req); if (contLen < 0) {