aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pbx/pbx_ael.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index d999caacc..31ab5db3a 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -3200,10 +3200,10 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
#ifdef OLD_RAND_ACTION
struct ael_priority *rand_test, *rand_end, *rand_skip;
#endif
- char buf1[2000];
- char buf2[2000];
+ char *buf1 = malloc(2000);
+ char *buf2 = malloc(2000);
+ char *new_label = malloc(2000);
char *strp, *strp2;
- char new_label[2000];
int default_exists;
int local_control_statement_count;
struct ael_priority *loop_break_save;
@@ -4035,6 +4035,9 @@ static void gen_prios(struct ael_extension *exten, char *label, pval *statement,
break;
}
}
+ free(buf1);
+ free(buf2);
+ free(new_label);
}
void set_priorities(struct ael_extension *exten)