]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_limit: close odbc handle
authorMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:44:14 +0000 (22:44 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 16 Mar 2009 22:44:14 +0000 (22:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12632 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index e2b8f8bfac046b2181e8378cb53e041137e33b46..fd03ff768982852f55a1c60cdf41e4dd65724873 100644 (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);