I am using "3.22.0", and there's an occasional crash when sqlite3Clsoe() is called. Part of backtrace: sqlite3LeaveMutexAndCloseZombie+452 sqlite3Clsoe+640 Then I tracked the code, this should have been caused by a NULL pointer passed to functionDestory(): p = sqliteHashData(i); // P may be NULL in some case do{ functionDestroy(dp, p); pNext = p->pNext; sqlite3DbFree(db, p); p = pNext; }while (p); So I intend to change this do-while to while-do to avoid this crash. Dose anyone have the similar situation?