From 37085ced64b1cdb4b2dde06834d7c34501af6a51 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 18 May 2009 13:01:16 +0000 Subject: [PATCH] Merged revisions 195021 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r195021 | russell | 2009-05-18 07:59:11 -0500 (Mon, 18 May 2009) | 12 lines Recorded merge of revisions 195020 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r195020 | russell | 2009-05-18 07:57:46 -0500 (Mon, 18 May 2009) | 5 lines 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.6.0@195022 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 e8da5e38cb..34eded8ce2 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1755,6 +1755,7 @@ static int action_getvar(struct mansession *s, const struct message *m) if (c) { ast_func_read(c, (char *) varname, 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