[mod_sofia] fix memleak (presence)

This commit is contained in:
Dragos Oancea 2021-09-15 15:47:18 +00:00 committed by Andrey Volk
parent ce9905cdf4
commit a5a1fb9dd8
1 changed files with 1 additions and 0 deletions

View 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;
}