Merge pull request #17909 from taosdata/fix/TD-20183
fix: fix catalog double free issue
This commit is contained in:
commit
1c78e2b4f8
|
@ -185,12 +185,12 @@ int32_t schHandleResponseMsg(SSchJob *pJob, SSchTask *pTask, int32_t execId, SDa
|
|||
code = rsp->code;
|
||||
}
|
||||
}
|
||||
SCH_UNLOCK(SCH_WRITE, &pJob->resLock);
|
||||
|
||||
if (taosArrayGetSize((SArray*)pJob->execRes.res) <= 0) {
|
||||
taosArrayDestroy((SArray*)pJob->execRes.res);
|
||||
pJob->execRes.res = NULL;
|
||||
}
|
||||
SCH_UNLOCK(SCH_WRITE, &pJob->resLock);
|
||||
}
|
||||
|
||||
tDecoderClear(&coder);
|
||||
|
|
Loading…
Reference in New Issue