Merge pull request #27428 from taosdata/fix/TD-31622-set-pointor-null-after-free

fix/TD-31622-set-pointor-nulll-after-free
This commit is contained in:
Hongze Cheng 2024-08-26 08:58:41 +08:00 committed by GitHub
commit 07f47025b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]; ShowFreeIterFp freeFp = pMgmt->freeIterFps[pShow->type];
if (freeFp != NULL) { if (freeFp != NULL) {
if (pShow->pIter != NULL) { if (pShow->pIter != NULL) {
mTrace("show:0x%" PRIx64 ", is destroying, data:%p, pIter:%p, ", pShow->id, pShow, pShow->pIter);
(*freeFp)(pMnode, pShow->pIter); (*freeFp)(pMnode, pShow->pIter);
pShow->pIter = NULL;
} }
} }