]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dup -ERR so we can free it later
authorRupa Schomaker <rupa@rupa.com>
Sat, 19 Jun 2010 19:49:15 +0000 (14:49 -0500)
committerRupa Schomaker <rupa@rupa.com>
Sat, 19 Jun 2010 19:49:15 +0000 (14:49 -0500)
src/switch_limit.c

index 55648ee72b3763b314843b0545d515ed84aafaa4..85989d7f3f4496266eb8c90d72b81047e23f5381 100755 (executable)
@@ -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();