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 da...@apache.org on 2009/12/18 18:40:41 UTC

svn commit: r892322 - /webservices/axis2/trunk/c/src/core/transport/http/sender/http_client.c

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,