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 da...@apache.org on 2008/04/30 06:59:54 UTC

svn commit: r652260 - /webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Author: damitha
Date: Tue Apr 29 21:59:54 2008
New Revision: 652260

URL: http://svn.apache.org/viewvc?rev=652260&view=rev
Log:

Fixing memory leak mentioned in Jira AXIS2C-1122

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c?rev=652260&r1=652259&r2=652260&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c Tue Apr 29 21:59:54 2008
@@ -221,6 +221,11 @@
 
         server_date = axis2_http_header_create(env,
                                           AXIS2_HTTP_HEADER_DATE, date_str);
+        if(date_str)
+        {
+            AXIS2_FREE(env->allocator, date_str);
+            date_str = NULL;
+        }
         axis2_http_simple_response_set_header(response, env, server_date);
 
         server = axis2_http_header_create(env,
@@ -902,7 +907,8 @@
                                                                       url_ext_form);
 
         }
-
+        if(url_ext_form)
+            AXIS2_FREE(env->allocator, url_ext_form);
         if (AXIS2_FAILURE == status && (is_put ||
             axis2_msg_ctx_get_doing_rest(msg_ctx, env)))
         {



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