From: Anthony Minessale Date: Mon, 27 Aug 2007 20:53:48 +0000 (+0000) Subject: free xml later in the code to avoid freeing used memory X-Git-Tag: v1.0-beta2~679 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c2465a2e7f8f7758b7af686df469de85d542e1;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 996ad0fa00..663856de75 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -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)) { ret = AUTH_OK; goto end; @@ -894,6 +892,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, sip_authorization_t co } end: + switch_xml_free(xml); switch_safe_free(input); switch_safe_free(input2); switch_safe_free(username);