1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Add an extra assert() to releaseMemArray() just to prove that the

sqlite3_value.db field is never NULL.

FossilOrigin-Name: b969ef1def5121c7ff54e3586528274f006ca994b308cf88ccaa9d4f56bf30df
This commit is contained in:
drh
2024-12-30 12:29:18 +00:00
parent 4112a63b8f
commit 6b19c72f26
3 changed files with 8 additions and 7 deletions

View File

@ -2169,6 +2169,7 @@ static void releaseMemArray(Mem *p, int N){
if( p && N ){
Mem *pEnd = &p[N];
sqlite3 *db = p->db;
assert( db!=0 );
if( db->pnBytesFreed ){
do{
if( p->szMalloc ) sqlite3DbFree(db, p->zMalloc);