fix/TD-31622-set-pointor-nulll-after-free

This commit is contained in:
dmchen 2024-08-23 04:09:14 +00:00
parent c998f31044
commit 61c85f43bb
1 changed files with 4 additions and 0 deletions

View File

@ -180,7 +180,11 @@ static void mndFreeShowObj(SShowObj *pShow) {
ShowFreeIterFp freeFp = pMgmt->freeIterFps[pShow->type];
if (freeFp != NULL) {
if (pShow->pIter != NULL) {
mTrace("show:0x%" PRIx64 ", is destroying, data:%p, pIter:%p, ", pShow->id, pShow, pShow->pIter);
(*freeFp)(pMnode, pShow->pIter);
pShow->pIter = NULL;
}
}