[Freeswitch-svn] [commit] r11611 - freeswitch/trunk/src/mod/applications/mod_easyroute

FreeSWITCH SVN rupa at freeswitch.org
Tue Feb 3 10:49:25 PST 2009


Author: rupa
Date: Tue Feb  3 12:49:25 2009
New Revision: 11611

Log:
fix memory leak on each sql execution


Modified:
   freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c

Modified: freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c	Tue Feb  3 12:49:25 2009
@@ -281,6 +281,7 @@
 #else
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_easyroute requires core ODBC support. Please refer to the documentation on how to enable this\n");
 #endif
+	switch_safe_free(sql);
 	if (globals.mutex){
 		switch_mutex_unlock(globals.mutex);
 	}



More information about the Freeswitch-svn mailing list