[mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe()

This commit is contained in:
Andrey Volk 2020-10-07 03:21:16 +04:00
parent 8e4b418ee4
commit dcb75a79e3
1 changed files with 4 additions and 0 deletions

View File

@ -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); switch_event_fire(&event);
} else if (!strcasecmp(event, "message-summary")) { } else if (!strcasecmp(event, "message-summary")) {