axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r892322 - /webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c
Date Fri, 18 Dec 2009 17:40:41 GMT
Author: damitha
Date: Fri Dec 18 17:40:40 2009
New Revision: 892322

URL: http://svn.apache.org/viewvc?rev=892322&view=rev
Log:
We need to free previous request body

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

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c?rev=892322&r1=892321&r2=892322&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c Fri Dec 18 17:40:40
2009
@@ -190,6 +190,11 @@
     /* In the MTOM case request body is not set. Instead mime_parts
      array_list is there */
 
+    if(client->req_body)
+    {
+        AXIS2_FREE(env->allocator, client->req_body);
+        client->req_body = NULL;
+    }
     if(!client->req_body && !(client->doing_mtom))
     {
         client->req_body_size = axis2_http_simple_request_get_body_bytes(request, env,



Mime
View raw message