dont free data that was session_strdup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11993 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8ff1fecf7f
commit
fd252b2544
|
@ -727,7 +727,7 @@ SWITCH_STANDARD_APP(limit_function)
|
||||||
|
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "USAGE: limit %s\n", LIMIT_USAGE);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "USAGE: limit %s\n", LIMIT_USAGE);
|
||||||
goto end;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_mutex_lock(globals.mutex);
|
switch_mutex_lock(globals.mutex);
|
||||||
|
@ -782,8 +782,6 @@ SWITCH_STANDARD_APP(limit_function)
|
||||||
|
|
||||||
done:
|
done:
|
||||||
switch_mutex_unlock(globals.mutex);
|
switch_mutex_unlock(globals.mutex);
|
||||||
end:
|
|
||||||
switch_safe_free(mydata);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue