]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] Fix multiple memory leaks in sofia_presence_handle_sip_i_subscribe()
authorAndrey Volk <andywolk@gmail.com>
Tue, 6 Oct 2020 23:21:16 +0000 (03:21 +0400)
committerAndrey Volk <andywolk@gmail.com>
Tue, 16 Mar 2021 21:56:19 +0000 (00:56 +0300)
src/mod/endpoints/mod_sofia/sofia_presence.c

index e1c31c99c879b4401ae8744c6626a5e736bcfafc..e27b0495ffd25439a5e0e577a95ae9ce1f5468ac 100644 (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);
        } else if (!strcasecmp(event, "message-summary")) {