From: Tilghman Lesher Date: Mon, 27 Oct 2008 16:24:11 +0000 (+0000) Subject: Oops, only delete the ARG variables once upon release. The following section X-Git-Tag: 1.6.2.0-beta1~1026 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ee45f5309f17ddffe38e8e2ddebdded8ef80f06;p=thirdparty%2Fasterisk.git Oops, only delete the ARG variables once upon release. The following section would have removed them again (removing variables from 2 stack frames, instead of just one). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@152134 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_stack.c b/apps/app_stack.c index bfcefc19b0..4afabc651d 100644 --- a/apps/app_stack.c +++ b/apps/app_stack.c @@ -128,14 +128,6 @@ static void gosub_release_frame(struct ast_channel *chan, struct gosub_stack_fra * that frame, so that we re-expose the variables from the previous frame * that were hidden by this one. */ - if (chan) { - for (i = 1; i <= frame->arguments && i != 0; i++) { - snprintf(argname, sizeof(argname), "ARG%hhd", i); - pbx_builtin_setvar_helper(chan, argname, NULL); - } - } - - /* Delete local variables */ while ((vardata = AST_LIST_REMOVE_HEAD(&frame->varshead, entries))) { if (chan) pbx_builtin_setvar_helper(chan, ast_var_name(vardata), NULL);