From ca9dfc3c5e3687357b467aecc72b903a7cdbeb8e Mon Sep 17 00:00:00 2001 From: Rupa Schomaker Date: Mon, 19 Apr 2010 13:17:33 -0500 Subject: [PATCH] nibblebill - free allocated memory at shutdown --- src/mod/applications/mod_nibblebill/mod_nibblebill.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 src/mod/applications/mod_nibblebill/mod_nibblebill.c diff --git a/src/mod/applications/mod_nibblebill/mod_nibblebill.c b/src/mod/applications/mod_nibblebill/mod_nibblebill.c old mode 100644 new mode 100755 index 78b7addf37..fe9a9ecf3e --- a/src/mod/applications/mod_nibblebill/mod_nibblebill.c +++ b/src/mod/applications/mod_nibblebill/mod_nibblebill.c @@ -964,6 +964,18 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_nibblebill_shutdown) switch_core_remove_state_handler(&nibble_state_handler); switch_odbc_handle_disconnect(globals.master_odbc); + switch_safe_free(globals.db_username); + switch_safe_free(globals.db_password); + switch_safe_free(globals.db_dsn); + switch_safe_free(globals.db_table); + switch_safe_free(globals.db_column_cash); + switch_safe_free(globals.db_column_account); + switch_safe_free(globals.custom_sql_save); + switch_safe_free(globals.custom_sql_lookup); + switch_safe_free(globals.percall_action); + switch_safe_free(globals.lowbal_action); + switch_safe_free(globals.nobal_action); + return SWITCH_STATUS_UNLOAD; }