From: Rupa Schomaker Date: Sat, 19 Jun 2010 19:49:15 +0000 (-0500) Subject: dup -ERR so we can free it later X-Git-Tag: v1.2-rc1~610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b5778f8e154cc6847bc620b36f70ea231de0593;p=thirdparty%2Ffreeswitch.git dup -ERR so we can free it later --- diff --git a/src/switch_limit.c b/src/switch_limit.c index 55648ee72b..85989d7f3f 100755 --- a/src/switch_limit.c +++ b/src/switch_limit.c @@ -200,7 +200,7 @@ SWITCH_DECLARE(char *) switch_limit_status(const char *backend) { /* locate impl, call appropriate func */ if (!(limit = get_backend(backend))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Limit subsystem %s not found!\n", backend); - switch_goto_status("-ERR", end); + switch_goto_status(strdup("-ERR"), end); } status = limit->status();