From: Michael Jerris Date: Mon, 28 Apr 2014 17:41:48 +0000 (-0400) Subject: block of code in here twice was writing over expanded, causing it to potentially... X-Git-Tag: v1.5.12~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83fde3543b0803996800b7fa9c2d0a987268b71;p=thirdparty%2Ffreeswitch.git block of code in here twice was writing over expanded, causing it to potentially leak --- diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c index 7fda9487b1..099a9854bf 100644 --- a/src/mod/applications/mod_lcr/mod_lcr.c +++ b/src/mod/applications/mod_lcr/mod_lcr.c @@ -345,15 +345,6 @@ static char *get_bridge_data(switch_memory_pool_t *pool, char *dialed_number, ch } } - if (session && (switch_string_var_check_const(data) || switch_string_has_escaped_data(data))) { - expanded = switch_channel_expand_variables(switch_core_session_get_channel(session), data); - if (expanded == data ) { - expanded = NULL; - } else { - data = switch_core_strdup( pool, expanded ); - } - } - switch_safe_free(expanded); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Returning Dialstring %s\n", data);