fix(tdb/pcache): fix mem leak with unpined pages

This commit is contained in:
Minglei Jin 2023-09-08 08:09:53 +08:00
parent afe2bab57c
commit 5007087e19
1 changed files with 2 additions and 0 deletions

View File

@ -229,7 +229,9 @@ void tdbPCacheInvalidatePage(SPCache *pCache, SPager *pPager, SPgno pgno) {
}
if (pPage) {
tdbPCachePinPage(pCache, pPage);
tdbPCacheRemovePageFromHash(pCache, pPage);
tdbPCacheFreePage(pCache, pPage);
}
}