Revision
14864
Author
ledr
Date
2009-09-14 20:21:33 -0500 (Mon, 14 Sep 2009)

Log Message

removed comments - no, globals.queries_hash does not need to be freed as it's initialized on a pool that will be destroyed

Modified Paths

Diff

Modified: freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c (14863 => 14864)


--- freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c	2009-09-15 00:19:54 UTC (rev 14863)
+++ freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c	2009-09-15 01:21:33 UTC (rev 14864)
@@ -136,7 +136,6 @@
 
 	/* make odbc connection */
 	if (!reload) {
-
 		if (!(globals.odbc_handle = switch_odbc_handle_new(globals.odbc_dsn, odbc_user, odbc_pass))) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Cannot Open ODBC Database!\n");
 			goto done;
@@ -221,7 +220,6 @@
 
 	if (do_config(SWITCH_FALSE) != SWITCH_STATUS_SUCCESS) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to load xml_odbc config file\n");
-		/* TODO what about freeing queries_hash here ? */
 		return SWITCH_STATUS_FALSE;
 	}
 	
@@ -231,7 +229,6 @@
 	/* subscribe to reloadxml event, and hook it to reload_event_handler */
 	if ((switch_event_bind_removable(modname, SWITCH_EVENT_RELOADXML, NULL, reload_event_handler, NULL, &NODE) != SWITCH_STATUS_SUCCESS)) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't bind event!\n");
-		/* TODO what about freeing queries_hash here ? */
 		return SWITCH_STATUS_TERM;
 	}