Revision
17337
Author
rupa
Date
2010-04-19 13:18:20 -0500 (Mon, 19 Apr 2010)

Log Message

nibblebill - free allocated memory at shutdown

Modified Paths

Property Changed

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c (17336 => 17337)


--- freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c	2010-04-19 15:51:13 UTC (rev 17336)
+++ freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c	2010-04-19 18:18:20 UTC (rev 17337)
@@ -964,6 +964,18 @@
 	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;
 }
 
Property changes on: freeswitch/trunk/src/mod/applications/mod_nibblebill/mod_nibblebill.c
___________________________________________________________________
Name: svn:executable
   + on