mod_limit: close odbc handle

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12632 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-16 22:44:14 +00:00
parent 293bf48518
commit 8ed510458f
1 changed files with 7 additions and 0 deletions

View File

@ -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);