You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/03/27 04:09:59 UTC

svn commit: r389005 - /webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c

Author: samisa
Date: Sun Mar 26 18:09:58 2006
New Revision: 389005

URL: http://svn.apache.org/viewcvs?rev=389005&view=rev
Log:
more memory leak fixes for one way case

Modified:
    webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c

Modified: webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c?rev=389005&r1=389004&r2=389005&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ webservices/axis2/trunk/c/modules/core/receivers/raw_xml_in_out_msg_recv.c Sun Mar 26 18:09:58 2006
@@ -303,6 +303,12 @@
         AXIS2_MSG_CTX_SET_SOAP_ENVELOPE(new_msg_ctx, env, default_envelope);
         status = AXIS2_FAILURE; /* if there is a failure we have to return a failure code */
     }
+    else
+    {
+        /* we should free the memory as the envelope is not used, one way case */
+        AXIS2_SOAP_ENVELOPE_FREE(default_envelope, env);
+        default_envelope = NULL;
+    }
     
 
     return status;