From a4c06b56b558ce0f06e1658a11699fe1f18bdfbd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 16 Apr 2011 14:16:49 +0200 Subject: [PATCH] Fix Sqlite driver seg fault --- bacula/src/cats/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5