diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-18 12:57:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-18 12:57:46 +0000 |
commit | 9a20a61ebc80d56154e973a98f0d0dabe1f60eb8 (patch) | |
tree | e365d955a3cb29b1468e82eb713ac34f36ec86c2 | |
parent | 86e7ae36f6c38412fffd575309342d3be2e95885 (diff) |
Don't try to unlock a bogus channel.
(closes issue #15144)
Reported by: cristiandimache
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@195020 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c index d54874547..93fcd5a34 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1550,6 +1550,7 @@ static int action_getvar(struct mansession *s, const struct message *m) if (c) { ast_func_read(c, copy, workspace, sizeof(workspace)); ast_channel_free(c); + c = NULL; } else ast_log(LOG_ERROR, "Unable to allocate bogus channel for variable substitution. Function results may be blank.\n"); } else |