You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/03/27 04:13:10 UTC
svn commit: r389006 -
/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
Author: samisa
Date: Sun Mar 26 18:13:08 2006
New Revision: 389006
URL: http://svn.apache.org/viewcvs?rev=389006&view=rev
Log:
Clean leaks in case of errors
Modified:
webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?rev=389006&r1=389005&r2=389006&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Sun Mar 26 18:13:08 2006
@@ -211,11 +211,17 @@
msg_info_headers = AXIS2_MSG_CTX_GET_MSG_INFO_HEADERS (msg_ctx, env);
soap_envelope = AXIS2_MSG_CTX_GET_SOAP_ENVELOPE (msg_ctx, env);
if (!soap_envelope)
+ {
+ AXIS2_OM_NAMESPACE_FREE(addressing_namespace, env);
return AXIS2_SUCCESS; /* can happen in case of one way services/clients */
+ }
soap_header = AXIS2_SOAP_ENVELOPE_GET_HEADER (soap_envelope, env);
if (!soap_header)
+ {
+ AXIS2_OM_NAMESPACE_FREE(addressing_namespace, env);
return AXIS2_SUCCESS; /*No SOAP header, so no point proceeding*/
+ }
/* by this time, we definitely have some addressing information to be sent. This is because,
// we have tested at the start of this whether msg_info_headers are null or not.