Fixed bug when garbage collecting sqlite3_mprintf when listing records