path: root/pbx
diff options
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-10 23:28:55 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-10 23:28:55 +0000
commit99e5289a45ee124abb99c16bfacd31e07de35449 (patch)
treed34b146efc57c53523bc3d3423a1b1b92a0272f0 /pbx
parent03aa754eecd89723da969b189b7098e2e2b1fda3 (diff)
issue #5701
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7055 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
1 files changed, 1 insertions, 2 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index 9350ff49b..287738418 100755
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -966,6 +966,7 @@ static void handle_macro(struct ast_context **local_contexts, struct stringlink
} else
ast_log(LOG_WARNING, "Unable to create context '%s'\n", name);
+ arg_free(paramv);
if (vars->next)
ast_log(LOG_NOTICE, "Ignoring excess tokens in macro definition around line %d of %s!\n", lineno, filename);
@@ -1013,7 +1014,6 @@ static void parse_keyword(char *s, char **o)
static void handle_context(struct ast_context **local_contexts, struct stringlink *vars, const char *filename, int lineno)
struct stringlink *argv;
- struct stringlink *paramv;
struct stringlink *cur2;
struct stringlink *argv2;
struct stringlink *cur;
@@ -1026,7 +1026,6 @@ static void handle_context(struct ast_context **local_contexts, struct stringlin
if (aeldebug & DEBUG_CONTEXTS)
ast_verbose("Root context def is '%s'\n", vars->data);
argv = split_token(vars->data, filename, lineno);
- paramv = split_params(vars->data, filename, lineno);
if (aeldebug & DEBUG_CONTEXTS)
ast_verbose("Found context '%s'\n", vars->data);
snprintf(name, sizeof(name), "%s", vars->data);