From 1ba6b1b5186f9e098a14b56e6aa9d4825bc84c91 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 20 Nov 2007 03:24:55 +0000 Subject: [PATCH] whoops git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6350 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 0f846e4830..5d97c96388 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2054,7 +2054,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ } if ((alert_info = sip_alert_info(sip))) { - switch_channel_set_variable(channel, "alert_info", sip_header_as_string(profile->home, (void *) alert_info)); + char *tmp = sip_header_as_string(profile->home, (void *) alert_info); + switch_channel_set_variable(channel, "alert_info", tmp); + su_free(profile->home, tmp); } check_decode(displayname, session);