提交 3edee3fe 编写于 作者: H Hongze Cheng

fix memory leak

上级 3172306f
...@@ -171,7 +171,6 @@ static int32_t tsdbDoRetentionEnd(SRTNer *rtner) { ...@@ -171,7 +171,6 @@ static int32_t tsdbDoRetentionEnd(SRTNer *rtner) {
taosThreadRwlockUnlock(&rtner->tsdb->rwLock); taosThreadRwlockUnlock(&rtner->tsdb->rwLock);
TARRAY2_DESTROY(rtner->fopArr, NULL); TARRAY2_DESTROY(rtner->fopArr, NULL);
tsdbFSDestroyCopySnapshot(&rtner->fsetArr);
_exit: _exit:
if (code) { if (code) {
...@@ -179,6 +178,7 @@ _exit: ...@@ -179,6 +178,7 @@ _exit:
} else { } else {
tsdbInfo("vid:%d, cid:%" PRId64 ", %s done", TD_VID(rtner->tsdb->pVnode), rtner->cid, __func__); tsdbInfo("vid:%d, cid:%" PRId64 ", %s done", TD_VID(rtner->tsdb->pVnode), rtner->cid, __func__);
} }
tsdbFSDestroyCopySnapshot(&rtner->fsetArr);
return code; return code;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册