axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r571039 - /webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
Date Thu, 30 Aug 2007 04:58:45 GMT
Author: nandika
Date: Wed Aug 29 21:58:45 2007
New Revision: 571039

URL: http://svn.apache.org/viewvc?rev=571039&view=rev
Log:
memory leak fixed , when sending an mtom message from service large memory leak occurs in
http_transport_sender.c,
Now it is fixed

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c?rev=571039&r1=571038&r2=571039&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_transport_sender.c Wed Aug
29 21:58:45 2007
@@ -346,6 +346,8 @@
                 axiom_node_serialize(data_out, env, om_output);
                 buffer = (axis2_char_t*)axiom_xml_writer_get_xml(xml_writer, env);
                 buffer_size = axiom_xml_writer_get_xml_size(xml_writer, env);
+				
+				axutil_stream_write(out_stream, env, buffer, buffer_size);
             }
             else
             {
@@ -364,15 +366,18 @@
                     AXIS2_HTTP_OUT_TRANSPORT_INFO_SET_CONTENT_TYPE(out_info,
                             env, content_type);
                     buffer = output_stream;
+					axutil_stream_write(out_stream, env, buffer, buffer_size);
+					AXIS2_FREE(env->allocator, buffer);
                 }
                 else
                 {
                     buffer = (axis2_char_t *)axiom_xml_writer_get_xml(xml_writer, env);
                     buffer_size = axiom_xml_writer_get_xml_size(xml_writer, env);
+					axutil_stream_write(out_stream, env, buffer, buffer_size);
                 }
             }
-            axutil_stream_write(out_stream, env, buffer, buffer_size);
-            /*AXIS2_FREE(env->allocator, buffer);*/
+           
+            
 
             op_ctx =  axis2_msg_ctx_get_op_ctx(msg_ctx, env);
             axis2_op_ctx_set_response_written(op_ctx, env, AXIS2_TRUE);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message