]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix seg fault in PostgreSQL driver code
authorKern Sibbald <kern@sibbald.com>
Sat, 5 Mar 2011 20:45:59 +0000 (21:45 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:39 +0000 (14:43 +0200)
bacula/src/cats/postgresql.c

index 598b39f7d1f0126eb68a26e6b23feb64afa520f6..e0ec34838e82d63b2c4e309f46f16a9d89917d01 100644 (file)
@@ -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);