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/12/18 12:30:20 UTC

svn commit: r488230 - in /webservices/axis2/trunk/c/modules/core: clientapi/op_client.c transport/http/http_worker.c util/core_utils.c

Author: samisa
Date: Mon Dec 18 03:30:10 2006
New Revision: 488230

URL: http://svn.apache.org/viewvc?view=rev&rev=488230
Log:
Fixed more memory leaks

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
    webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
    webservices/axis2/trunk/c/modules/core/util/core_utils.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/op_client.c?view=diff&rev=488230&r1=488229&r2=488230
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/op_client.c Mon Dec 18 03:30:10 2006
@@ -515,7 +515,7 @@
         if (block)
         {
             axis2_msg_ctx_t *response_mc = NULL;
-            /*axis2_char_t *address = NULL;*/
+            axis2_char_t *address = NULL;
             const axis2_char_t *epr_address = NULL;
             axis2_property_t *property = NULL;
             axis2_endpoint_ref_t *to_epr = NULL;
@@ -531,10 +531,10 @@
             if(!to_epr)
                 to_epr = AXIS2_OPTIONS_GET_TO(op_client_impl->options, env);
             epr_address = AXIS2_ENDPOINT_REF_GET_ADDRESS(to_epr, env);
-            /*address = AXIS2_STRDUP(epr_address, env);*/
+            address = AXIS2_STRDUP(epr_address, env);
             property = axis2_property_create(env);
-            AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_APPLICATION);
-            AXIS2_PROPERTY_SET_VALUE(property, env, (axis2_char_t *) epr_address);
+            AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
+            AXIS2_PROPERTY_SET_VALUE(property, env, (axis2_char_t *) address);
             AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env,
                     AXIS2_TRANSPORT_URL, property, AXIS2_FALSE);
             AXIS2_MSG_CTX_SET_SVC_CTX(msg_ctx, env, op_client_impl->svc_ctx);

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=488230&r1=488229&r2=488230
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Mon Dec 18 03:30:10 2006
@@ -264,7 +264,7 @@
 
 	url_external_form = AXIS2_URL_TO_EXTERNAL_FORM(request_url, env);
     property = axis2_property_create(env);
-    AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_APPLICATION);
+    AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
     AXIS2_PROPERTY_SET_FREE_FUNC(property, env, axis2_stream_free_void_arg);
     AXIS2_PROPERTY_SET_VALUE(property, env, out_stream);
     AXIS2_MSG_CTX_SET_PROPERTY(msg_ctx, env, AXIS2_TRANSPORT_OUT, property,
@@ -287,7 +287,7 @@
     }
 
     property = axis2_property_create(env);
-    AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_APPLICATION);
+    AXIS2_PROPERTY_SET_SCOPE(property, env, AXIS2_SCOPE_REQUEST);
     AXIS2_PROPERTY_SET_FREE_FUNC(property, env,
             axis2_http_out_transport_info_free_void_arg);
     http_out_transport_info = axis2_http_out_transport_info_create(env, response);

Modified: webservices/axis2/trunk/c/modules/core/util/core_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/util/core_utils.c?view=diff&rev=488230&r1=488229&r2=488230
==============================================================================
--- webservices/axis2/trunk/c/modules/core/util/core_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/util/core_utils.c Mon Dec 18 03:30:10 2006
@@ -135,7 +135,7 @@
     if (property)
     {
         AXIS2_MSG_CTX_SET_PROPERTY(new_msg_ctx, env, AXIS2_HTTP_OUT_TRANSPORT_INFO,
-            AXIS2_PROPERTY_CLONE(property, env), AXIS2_FALSE);
+            property, AXIS2_FALSE);
         property = NULL;
     }
 



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