未验证 提交 1c78e2b4 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #17909 from taosdata/fix/TD-20183

fix: fix catalog double free issue
...@@ -185,12 +185,12 @@ int32_t schHandleResponseMsg(SSchJob *pJob, SSchTask *pTask, int32_t execId, SDa ...@@ -185,12 +185,12 @@ int32_t schHandleResponseMsg(SSchJob *pJob, SSchTask *pTask, int32_t execId, SDa
code = rsp->code; code = rsp->code;
} }
} }
SCH_UNLOCK(SCH_WRITE, &pJob->resLock);
if (taosArrayGetSize((SArray*)pJob->execRes.res) <= 0) { if (taosArrayGetSize((SArray*)pJob->execRes.res) <= 0) {
taosArrayDestroy((SArray*)pJob->execRes.res); taosArrayDestroy((SArray*)pJob->execRes.res);
pJob->execRes.res = NULL; pJob->execRes.res = NULL;
} }
SCH_UNLOCK(SCH_WRITE, &pJob->resLock);
} }
tDecoderClear(&coder); tDecoderClear(&coder);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册