[Freeswitch-svn] [commit] r11957 - freeswitch/trunk/src/mod/applications/mod_limit
FreeSWITCH SVN
mrene at freeswitch.org
Thu Feb 12 13:23:00 PST 2009
Author: mrene
Date: Thu Feb 12 15:23:00 2009
New Revision: 11957
Log:
doh
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 Thu Feb 12 15:23:00 2009
@@ -727,7 +727,7 @@
if (argc < 3) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "USAGE: limit %s\n", LIMIT_USAGE);
- goto done;
+ goto end;
}
switch_mutex_lock(globals.mutex);
@@ -781,8 +781,9 @@
switch_channel_set_variable(channel, "limit_usage", switch_core_session_sprintf(session, "%d", ++got));
done:
- switch_safe_free(mydata);
switch_mutex_unlock(globals.mutex);
+ end:
+ switch_safe_free(mydata);
}
More information about the Freeswitch-svn
mailing list