From 3edee3fe9f827fe9db10ea789dc33f8d61a0b4f5 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 26 Jun 2023 22:04:29 +0800 Subject: [PATCH] fix memory leak --- source/dnode/vnode/src/tsdb/tsdbRetention.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbRetention.c b/source/dnode/vnode/src/tsdb/tsdbRetention.c index c8236e8f52..8b69e9507c 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRetention.c +++ b/source/dnode/vnode/src/tsdb/tsdbRetention.c @@ -171,7 +171,6 @@ static int32_t tsdbDoRetentionEnd(SRTNer *rtner) { taosThreadRwlockUnlock(&rtner->tsdb->rwLock); TARRAY2_DESTROY(rtner->fopArr, NULL); - tsdbFSDestroyCopySnapshot(&rtner->fsetArr); _exit: if (code) { @@ -179,6 +178,7 @@ _exit: } else { tsdbInfo("vid:%d, cid:%" PRId64 ", %s done", TD_VID(rtner->tsdb->pVnode), rtner->cid, __func__); } + tsdbFSDestroyCopySnapshot(&rtner->fsetArr); return code; } -- GitLab