提交 b2c2465a authored 作者: Anthony Minessale's avatar Anthony Minessale

free xml later in the code to avoid freeing used memory

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5667 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 075e80c3
...@@ -839,8 +839,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co ...@@ -839,8 +839,6 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
} }
} }
switch_xml_free(xml);
if (switch_strlen_zero(passwd) && switch_strlen_zero(a1_hash)) { if (switch_strlen_zero(passwd) && switch_strlen_zero(a1_hash)) {
ret = AUTH_OK; ret = AUTH_OK;
goto end; goto end;
...@@ -894,6 +892,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co ...@@ -894,6 +892,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co
} }
end: end:
switch_xml_free(xml);
switch_safe_free(input); switch_safe_free(input);
switch_safe_free(input2); switch_safe_free(input2);
switch_safe_free(username); switch_safe_free(username);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论