]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorMathieu Rene <mrene@avgs.ca>
Thu, 12 Feb 2009 21:23:00 +0000 (21:23 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 12 Feb 2009 21:23:00 +0000 (21:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11957 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index 94015ef7d2304f84968f373be30801b26fe2da54..837c622aae22a0eb6c0a7416111c1510030d24c1 100644 (file)
@@ -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);
 }