Skip to content

Commit 9790f13

Browse files
author
Tony Zhang
committed
fix: stream json memleak error
1 parent 23239cc commit 9790f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/common/src/msg/streamMsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2633,9 +2633,9 @@ int32_t tDeserializeSCMCreateStreamReqImpl(SDecoder *pDecoder, SCMCreateStreamRe
26332633
TAOS_CHECK_EXIT(TSDB_CODE_MND_STREAM_INVALID_JSON);
26342634
}
26352635
TAOS_CHECK_EXIT(jsonToSCMCreateStreamReq(pJson, pReq));
2636-
taosMemoryFreeClear(json);
26372636

26382637
_exit:
2638+
taosMemoryFreeClear(json);
26392639
if (NULL != pJson) {
26402640
tjsonDelete(pJson);
26412641
}

0 commit comments

Comments
 (0)