]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID: 1210596
authorRaymond Chandler <intralanman@gmail.com>
Thu, 1 May 2014 21:28:54 +0000 (17:28 -0400)
committerRaymond Chandler <intralanman@gmail.com>
Thu, 1 May 2014 21:28:54 +0000 (17:28 -0400)
src/mod/applications/mod_nibblebill/mod_nibblebill.c

index 1390e0ef0ad47c9e5baf7647d2855db254387f1b..8149f040e27ed66c96e7e7ff08b2a78342ed646b 100644 (file)
@@ -286,6 +286,8 @@ static switch_status_t nibblebill_load_config(void)
                if (!(dbh = nibblebill_get_db_handle())) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Database!\n");
                        switch_goto_status(SWITCH_STATUS_FALSE, done);
+               } else {
+                       switch_cache_db_release_db_handle(&dbh);
                }
        }