From: Kern Sibbald Date: Sat, 16 Apr 2011 12:16:49 +0000 (+0200) Subject: Fix Sqlite driver seg fault X-Git-Tag: Release-7.0.0~957 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a4c06b56b558ce0f06e1658a11699fe1f18bdfbd;p=bacula%2Fbacula Fix Sqlite driver seg fault --- diff --git a/bacula/src/cats/sqlite.c b/bacula/src/cats/sqlite.c index 4850f7a6ad..d26632c53c 100644 --- a/bacula/src/cats/sqlite.c +++ b/bacula/src/cats/sqlite.c @@ -225,9 +225,9 @@ void B_DB_SQLITE::db_close_database(JCR *jcr) { db_end_transaction(jcr); P(mutex); - sql_free_result(); m_ref_count--; if (m_ref_count == 0) { + sql_free_result(); db_list->remove(this); if (m_connected && m_db_handle) { sqlite3_close(m_db_handle);