diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 828f665b6c..00cc8561d6 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4325,7 +4325,6 @@ void sofia_presence_handle_sip_i_subscribe(int status, switch_event_fire(&event); } - end: if (strcasecmp(event, "call-info") && strcasecmp(event, "line-seize")) { @@ -4407,6 +4406,8 @@ void sofia_presence_handle_sip_i_subscribe(int status, } } + end: + if (event) { su_free(nua_handle_get_home(nh), event); }