Merge pull request #29938 from taosdata/fix/analysis

fix(stream): fix memory leak.
This commit is contained in:
Simon Guan 2025-02-28 11:00:44 +08:00 committed by GitHub
commit 890b8cfee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -1581,6 +1581,11 @@ int32_t streamTaskSendNegotiateChkptIdMsg(SStreamTask* pTask) {
streamFreeTaskState(pTask, p);
pTask->pBackend = NULL;
}
if (pTask->exec.pExecutor != NULL) {
qDestroyTask(pTask->exec.pExecutor);
pTask->exec.pExecutor = NULL;
}
return 0;
}