提交 f718a057 authored 作者: William King's avatar William King

Alice meet rabit hole. There is a leak here on every invite that comes back from…

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.
上级 f519ad19
...@@ -5491,6 +5491,9 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status ...@@ -5491,6 +5491,9 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE); 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)) { } else if (status == 200 && (profile->pres_type)) {
char *sql = NULL; char *sql = NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论