fix possible coredump

This commit is contained in:
Hongze Cheng 2022-01-10 06:43:14 +00:00
parent dc3a7ae946
commit 788ecf5e78
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ int vnodeBufPoolSwitch(SVnode *pVnode) {
pVnode->pBufPool->inuse = NULL; pVnode->pBufPool->inuse = NULL;
TD_DLIST_APPEND(&(pVnode->pBufPool->incycle), pvma); if (pvma) {
TD_DLIST_APPEND(&(pVnode->pBufPool->incycle), pvma);
}
return 0; return 0;
} }