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
This commit is contained in:
Russell Bryant
2009-05-18 12:57:46 +00:00
parent ca3481edb9
commit 85483848d0

View File

@@ -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