diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index e1c31c99c8..e27b0495ff 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4284,7 +4284,11 @@ void sofia_presence_handle_sip_i_subscribe(int status, } } } + + switch_xml_free(xml); } + + switch_safe_free(pd_dup); } switch_event_fire(&event); } else if (!strcasecmp(event, "message-summary")) {