[Freeswitch-svn] [commit] r11993 - freeswitch/trunk/src/mod/applications/mod_limit

FreeSWITCH SVN anthm at freeswitch.org
Fri Feb 13 11:35:42 PST 2009


Author: anthm
Date: Fri Feb 13 13:35:42 2009
New Revision: 11993

Log:
dont free data that was session_strdup

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

Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	Fri Feb 13 13:35:42 2009
@@ -727,7 +727,7 @@
 
 	if (argc < 3) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "USAGE: limit %s\n", LIMIT_USAGE);
-		goto end;
+		return;
 	}
 
 	switch_mutex_lock(globals.mutex);
@@ -782,8 +782,6 @@
 
   done:
 	switch_mutex_unlock(globals.mutex);
-  end:
-	switch_safe_free(mydata);
 }
 
 



More information about the Freeswitch-svn mailing list