summaryrefslogtreecommitdiff
path: root/main/features.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c
index 433c1a647..964e53614 100644
--- a/main/features.c
+++ b/main/features.c
@@ -6044,6 +6044,7 @@ static void process_applicationmap_line(struct ast_variable *var)
} else {
ast_log(LOG_NOTICE, "Invalid 'ActivateOn' specification for feature '%s',"
" must be 'self', or 'peer'\n", var->name);
+ ast_free(feature);
return;
}
@@ -6058,6 +6059,7 @@ static void process_applicationmap_line(struct ast_variable *var)
} else {
ast_log(LOG_NOTICE, "Invalid 'ActivatedBy' specification for feature '%s',"
" must be 'caller', or 'callee', or 'both'\n", var->name);
+ ast_free(feature);
return;
}