fix(stream): fix memory leak.

This commit is contained in:
Haojun Liao 2025-02-26 00:13:44 +08:00
parent 100136fa4e
commit 3923707826
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;
}