Alice meet rabit hole. There is a leak here on every invite that comes back from a status 180 when the other side is not FS, but you have presence enabled. Thanks to Coverity scan for location this condition. This 'might' not have been leaking if sofia was automatically freeing this when the sofia object was destroyed, but all other locations where sip_header_as_string where called they were all followed by a su_free, so I assume not.
This commit is contained in:
parent
d61d395e8d
commit
14f48a6a7a
|
@ -5435,6 +5435,9 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
|
|||
|
||||
sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
|
||||
|
||||
if ( full_contact ) {
|
||||
su_free(nua_handle_home(tech_pvt->nh), full_contact);
|
||||
}
|
||||
}
|
||||
} else if (status == 200 && (profile->pres_type)) {
|
||||
char *sql = NULL;
|
||||
|
|
Loading…
Reference in New Issue