fix/TD-31622-set-pointor-nulll-after-free
This commit is contained in:
parent
c998f31044
commit
61c85f43bb
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue