From: Kern Sibbald Date: Sat, 5 Mar 2011 20:45:59 +0000 (+0100) Subject: Fix seg fault in PostgreSQL driver code X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f894fe3f708b288c4e0ebc56f47e42e85298b01f;p=bacula%2Fbacula Fix seg fault in PostgreSQL driver code --- 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);