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