Skip to content

Commit a726cf1

Browse files
andywolkmarkjcrane
authored andcommitted
[mod_dialplan_xml] Fix double free after upgrade to pcre2. (signalwire#2946)
1 parent 55fe6d8 commit a726cf1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
348348

349349
switch_safe_free(save_expression);
350350
switch_safe_free(save_field_data);
351-
switch_regex_match_safe_free(match_data);
351+
switch_regex_match_safe_free(save_match_data);
352352
switch_regex_safe_free(save_re);
353353

354354
save_expression = strdup(expression);
@@ -358,6 +358,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
358358
save_proceed = proceed;
359359

360360
re = NULL;
361+
match_data = NULL;
361362
}
362363

363364
switch_regex_match_safe_free(match_data);

0 commit comments

Comments
 (0)