]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] fix memleak (presence)
authorDragos Oancea <dragos@signalwire.com>
Wed, 15 Sep 2021 15:47:18 +0000 (15:47 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:56 +0000 (22:00 +0300)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 43564731d8b0b0d760217e029e6b3a91fe38f3de..ce04b2b46f798d7de7de3ebf0b8a94ea5d7d2fe2 100644 (file)
@@ -1414,6 +1414,7 @@ static switch_event_t *actual_sofia_presence_event_handler(switch_event_t *event
 
 
                                if (zstr(call_id) && (dh.hits && presence_source && (!strcasecmp(presence_source, "register") || switch_stristr("register", status)))) {
+                                       switch_console_free_matches(&matches);
                                        sofia_glue_release_profile(profile);
                                        goto done;
                                }