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