fix(stream): fix memory leak.

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