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/11/23 02:55:26 UTC

svn commit: r478433 - in /webservices/axis2/trunk/c: modules/core/phaseresolver/phase_resolver.c samples/client/math/axis2_math_stub.c samples/client/math/math_client.c

Author: samisa
Date: Wed Nov 22 17:55:25 2006
New Revision: 478433

URL: http://svn.apache.org/viewvc?view=rev&rev=478433
Log:
More memory leak fixes

Modified:
    webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c
    webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c
    webservices/axis2/trunk/c/samples/client/math/math_client.c

Modified: webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c?view=diff&rev=478433&r1=478432&r2=478433
==============================================================================
--- webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c (original)
+++ webservices/axis2/trunk/c/modules/core/phaseresolver/phase_resolver.c Wed Nov 22 17:55:25 2006
@@ -1631,12 +1631,14 @@
                 }
             }
         }
+
+        if(phase_holder)
+        {
+            AXIS2_PHASE_HOLDER_FREE(phase_holder, env);
+            phase_holder = NULL;
+        }
     }
-    if(phase_holder)
-    {
-        AXIS2_PHASE_HOLDER_FREE(phase_holder, env);
-        phase_holder = NULL;
-    }
+    
     return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c?view=diff&rev=478433&r1=478432&r2=478433
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c Wed Nov 22 17:55:25 2006
@@ -55,21 +55,25 @@
     op = axis2_op_create_with_qname(env, op_qname);
     AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
     AXIS2_SVC_ADD_OP(svc, env, op);
+    AXIS2_QNAME_FREE(op_qname, env);
 
     op_qname = axis2_qname_create(env, "sub" , "", NULL);
     op = axis2_op_create_with_qname(env, op_qname);
     AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
     AXIS2_SVC_ADD_OP(svc, env, op);
+    AXIS2_QNAME_FREE(op_qname, env);
 
     op_qname = axis2_qname_create(env, "mul" , "", NULL);
     op = axis2_op_create_with_qname(env, op_qname);
     AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
     AXIS2_SVC_ADD_OP(svc, env, op);
+    AXIS2_QNAME_FREE(op_qname, env);
 
     op_qname = axis2_qname_create(env, "div" , "", NULL);
     op = axis2_op_create_with_qname(env, op_qname);
     AXIS2_OP_SET_MSG_EXCHANGE_PATTERN(op, env, AXIS2_MEP_URI_OUT_IN);
     AXIS2_SVC_ADD_OP(svc, env, op);
+    AXIS2_QNAME_FREE(op_qname, env);
 }
 
 axis2_stub_t *
@@ -111,6 +115,7 @@
     svc_client = AXIS2_STUB_GET_SVC_CLIENT(stub, env);
     op_qname = axis2_qname_create(env, "add" , "", NULL);
     ret_node =  AXIS2_SVC_CLIENT_SEND_RECEIVE_WITH_OP_QNAME(svc_client, env, op_qname, node);
+    AXIS2_QNAME_FREE(op_qname, env);
 
     return ret_node;
 }

Modified: webservices/axis2/trunk/c/samples/client/math/math_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/math_client.c?view=diff&rev=478433&r1=478432&r2=478433
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/math_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/math_client.c Wed Nov 22 17:55:25 2006
@@ -124,6 +124,13 @@
     {
         AXIS2_STUB_FREE(stub, env);
     }
+
+    if (env)
+    {
+        axis2_env_free((axis2_env_t *) env);
+        env = NULL;
+    }
+    
     return status;
 }
 



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