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 11:51:42 UTC

svn commit: r542183 - in /webservices/axis2/trunk/c: neethi/src/registry.c src/core/description/desc.c src/core/engine/conf.c

Author: samisa
Date: Mon May 28 02:51:42 2007
New Revision: 542183

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

Modified:
    webservices/axis2/trunk/c/neethi/src/registry.c
    webservices/axis2/trunk/c/src/core/description/desc.c
    webservices/axis2/trunk/c/src/core/engine/conf.c

Modified: webservices/axis2/trunk/c/neethi/src/registry.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/registry.c?view=diff&rev=542183&r1=542182&r2=542183
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/registry.c (original)
+++ webservices/axis2/trunk/c/neethi/src/registry.c Mon May 28 02:51:42 2007
@@ -96,7 +96,7 @@
     }
     if(neethi_registry->parent)
     {
-        neethi_registry_free(neethi_registry->parent, env);
+        /*neethi_registry_free(neethi_registry->parent, env);*/
         neethi_registry->parent = NULL;
     }
     AXIS2_FREE(env->allocator,neethi_registry);

Modified: webservices/axis2/trunk/c/src/core/description/desc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/description/desc.c?view=diff&rev=542183&r1=542182&r2=542183
==============================================================================
--- webservices/axis2/trunk/c/src/core/description/desc.c (original)
+++ webservices/axis2/trunk/c/src/core/description/desc.c Mon May 28 02:51:42 2007
@@ -102,6 +102,11 @@
         axutil_param_container_free(desc->param_container, env);
     }
 
+    if (desc->policy_include)
+    {
+        axis2_policy_include_free(desc->policy_include, env);
+    }
+
     if (desc)
     {
         AXIS2_FREE(env->allocator, desc);

Modified: webservices/axis2/trunk/c/src/core/engine/conf.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/engine/conf.c?view=diff&rev=542183&r1=542182&r2=542183
==============================================================================
--- webservices/axis2/trunk/c/src/core/engine/conf.c (original)
+++ webservices/axis2/trunk/c/src/core/engine/conf.c Mon May 28 02:51:42 2007
@@ -492,6 +492,11 @@
     {
         AXIS2_FREE(env->allocator, conf->axis2_repo);
     }
+    
+    if (conf->base)
+    {
+        axis2_desc_free(conf->base, env);
+    }
 
     if (conf)
     {



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