Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions unqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -49006,6 +49006,12 @@ static void lhCellDiscard(lhcell *pCell)
pPage->pFirst = pCell->pPrev;
}
pPage->nCell--;
/* Free the cell table when no cell exist in this page */
if( pPage->nCell == 0 ){
SyMemBackendFree(&pPage->pHash->sAllocator,(void *)pPage->apCell);
pPage->apCell = NULL;
pPage->nCellSize = 0;
}
/* Release the cell */
SyBlobRelease(&pCell->sKey);
SyMemBackendPoolFree(&pPage->pHash->sAllocator,pCell);
Expand Down