From bed5765013373ef27c71c6fea1d14f9186c0d586 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 26 Aug 2023 16:15:26 +0800 Subject: [PATCH] fix UAF --- source/libs/stream/src/streamMeta.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libs/stream/src/streamMeta.c b/source/libs/stream/src/streamMeta.c index 209ff4cc73..5cc3310e11 100644 --- a/source/libs/stream/src/streamMeta.c +++ b/source/libs/stream/src/streamMeta.c @@ -210,6 +210,7 @@ void streamMetaClose(SStreamMeta* pMeta) { if (pMeta == NULL) { return; } + // TODO, add ref to resolve race: timer thread cannot stop taosTmrStop(pMeta->hbInfo.hbTmr); streamMetaClear(pMeta);