From: Andrey Volk Date: Tue, 6 Oct 2020 23:21:16 +0000 (+0400) Subject: [mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe() X-Git-Tag: v1.10.6^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcb75a79e36cb131cc6fa8827ffdfcd852fa5adf;p=thirdparty%2Ffreeswitch.git [mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe() --- 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")) {