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 2007/05/28 12:12:46 UTC

svn commit: r542186 - in /webservices/axis2/trunk/c/src/core: deployment/svc_builder.c description/policy_include.c

Author: samisa
Date: Mon May 28 03:12:45 2007
New Revision: 542186

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

Modified:
    webservices/axis2/trunk/c/src/core/deployment/svc_builder.c
    webservices/axis2/trunk/c/src/core/description/policy_include.c

Modified: webservices/axis2/trunk/c/src/core/deployment/svc_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/svc_builder.c?view=diff&rev=542186&r1=542185&r2=542186
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/svc_builder.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/svc_builder.c Mon May 28 03:12:45 2007
@@ -484,8 +484,6 @@
         axutil_qname_free(qmep, env);
         qmep = NULL;
         op_name = axiom_attribute_get_value(op_name_att, env);
-        qopname = axutil_qname_create(env, op_name, NULL, NULL);
-        op_desc = axis2_op_create(env);
 
         if (op_mep_att)
         {
@@ -495,8 +493,6 @@
                 axis2_op_set_msg_exchange_pattern(op_desc, env, mep_url);
             }
         }
-
-        axis2_op_set_qname(op_desc, env, qopname);
 
         desc = axis2_op_get_base(op_desc,  env);
         policy_include = axis2_desc_get_policy_include(desc, env);

Modified: webservices/axis2/trunk/c/src/core/description/policy_include.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/description/policy_include.c?view=diff&rev=542186&r1=542185&r2=542186
==============================================================================
--- webservices/axis2/trunk/c/src/core/description/policy_include.c (original)
+++ webservices/axis2/trunk/c/src/core/description/policy_include.c Mon May 28 03:12:45 2007
@@ -93,6 +93,12 @@
     
     parent_desc = axis2_desc_get_parent(desc, env);
     
+    if (policy_include->registry)
+    {
+        neethi_registry_free(policy_include->registry, env);
+        policy_include->registry = NULL;
+    }
+
     if (parent_desc)
     {
         axis2_policy_include_t *preant_policy_include = 



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