From: Dragos Oancea Date: Wed, 15 Sep 2021 15:47:18 +0000 (+0000) Subject: [mod_sofia] fix memleak (presence) X-Git-Tag: v1.10.7^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5a1fb9dd8c01ffa470fd27518a3dc5210f0afb2;p=thirdparty%2Ffreeswitch.git [mod_sofia] fix memleak (presence) --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 43564731d8..ce04b2b46f 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -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; }