From 85483848d0343e54c235263450a7729ca432eb50 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 18 May 2009 12:57:46 +0000 Subject: [PATCH] Don't try to unlock a bogus channel. (closes issue #15144) Reported by: cristiandimache git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@195020 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/manager.c b/main/manager.c index d548745479..93fcd5a349 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