aboutsummaryrefslogtreecommitdiffstats
path: root/main/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c
index 0446ac09b..4fab15929 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1851,6 +1851,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