From: Mathieu Rene Date: Mon, 16 Mar 2009 22:44:14 +0000 (+0000) Subject: mod_limit: close odbc handle X-Git-Tag: v1.0.4~1504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed510458f0dfcb63f3bef5226fae1cc3ed74279;p=thirdparty%2Ffreeswitch.git mod_limit: close odbc handle git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12632 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index e2b8f8bfac..fd03ff7689 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -1106,6 +1106,13 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_limit_load) SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_limit_shutdown) { + + #ifdef SWITCH_HAVE_ODBC + if (globals.master_odbc) { + switch_odbc_handle_destroy(&globals.master_odbc); + } + #endif + switch_event_free_subclass(LIMIT_EVENT_USAGE); switch_xml_config_cleanup(config_settings);