diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 68f47600ad..6c1311e5e5 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -6253,6 +6253,10 @@ int sofia_recover_callback(switch_core_session_t *session) end: + if (profile) { + sofia_glue_release_profile(profile); + } + return r; }