Xcode memory leak when using SQLite3 API Xcode memory leak when using SQLite3 API sqlite sqlite

Xcode memory leak when using SQLite3 API


You should finalize any prepared statement that you no longer use:

sqlite3_finalize(addStmt), addStmt = nil;

There is no real need to set the pointer to nil I just real like it.