From 7d9bc4e5677a48e035e4a8753903cb91a5cebf29 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 5 Mar 2011 21:45:59 +0100 Subject: [PATCH] Fix seg fault in PostgreSQL driver code --- bacula/src/cats/postgresql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/cats/postgresql.c b/bacula/src/cats/postgresql.c index 598b39f7d1..e0ec34838e 100644 --- a/bacula/src/cats/postgresql.c +++ b/bacula/src/cats/postgresql.c @@ -118,6 +118,7 @@ B_DB_POSTGRESQL::B_DB_POSTGRESQL(JCR *jcr, path = get_pool_memory(PM_FNAME); esc_name = get_pool_memory(PM_FNAME); esc_path = get_pool_memory(PM_FNAME); + esc_obj = get_pool_memory(PM_FNAME); m_buf = get_pool_memory(PM_FNAME); m_allow_transactions = mult_db_connections; @@ -287,6 +288,7 @@ void B_DB_POSTGRESQL::db_close_database(JCR *jcr) free_pool_memory(path); free_pool_memory(esc_name); free_pool_memory(esc_path); + free_pool_memory(esc_obj); free_pool_memory(m_buf); if (m_db_driver) { free(m_db_driver); -- 2.39.5