From ad9bf329cbc916bf153719371038149ee03a69df Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 12 Feb 2009 21:23:00 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11957 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_limit/mod_limit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index 94015ef7d2..837c622aae 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -727,7 +727,7 @@ SWITCH_STANDARD_APP(limit_function) 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_STANDARD_APP(limit_function) 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); }