From ffe1cbcfbf3d93812ab0867146051f09c2afab76 Mon Sep 17 00:00:00 2001 From: lihui Date: Tue, 21 Jan 2020 15:31:30 +0800 Subject: [PATCH] [#1165] --- src/system/detail/src/mgmtMeter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/detail/src/mgmtMeter.c b/src/system/detail/src/mgmtMeter.c index 76867a0d07..a2a6ed8a7d 100644 --- a/src/system/detail/src/mgmtMeter.c +++ b/src/system/detail/src/mgmtMeter.c @@ -1186,6 +1186,8 @@ int mgmtRetrieveMetricMeta(SConnObj *pConn, char **pStart, SMetricMetaMsg *pMetr int32_t * tagLen = calloc(1, sizeof(int32_t) * pMetricMetaMsg->numOfMeters); if (result == NULL || tagLen == NULL) { + tfree(result); + tfree(tagLen); return -1; } -- GitLab