diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 14d3703338..813a109aac 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -227,7 +227,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro_event(switch_core_sessio if (!(substituted = malloc(len))) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Memory Error!\n"); switch_regex_safe_free(re); - switch_safe_free(expanded); + switch_safe_free(field_expanded_alloc); goto done; } memset(substituted, 0, len);