From: Raymond Chandler Date: Thu, 1 May 2014 21:28:54 +0000 (-0400) Subject: CID: 1210596 X-Git-Tag: v1.5.12~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e0929ef0ead5b685074cd38db2406ad7d31601;p=thirdparty%2Ffreeswitch.git CID: 1210596 --- diff --git a/src/mod/applications/mod_nibblebill/mod_nibblebill.c b/src/mod/applications/mod_nibblebill/mod_nibblebill.c index 1390e0ef0a..8149f040e2 100644 --- a/src/mod/applications/mod_nibblebill/mod_nibblebill.c +++ b/src/mod/applications/mod_nibblebill/mod_nibblebill.c @@ -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); } }