You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ma...@apache.org on 2007/07/12 09:57:35 UTC

svn commit: r555519 - /webservices/axis2/trunk/c/src/core/description/policy_include.c

Author: manjula
Date: Thu Jul 12 00:57:34 2007
New Revision: 555519

URL: http://svn.apache.org/viewvc?view=rev&rev=555519
Log:
Freeing the policy_wrapper hash element by element.

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

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=555519&r1=555518&r2=555519
==============================================================================
--- webservices/axis2/trunk/c/src/core/description/policy_include.c (original)
+++ webservices/axis2/trunk/c/src/core/description/policy_include.c Thu Jul 12 00:57:34 2007
@@ -137,6 +137,19 @@
 
     if (policy_include->wrapper_elements)
     {
+        axutil_hash_index_t *hi = NULL;
+        void *val = NULL;
+        for (hi = axutil_hash_first(policy_include->wrapper_elements, env); hi;
+                hi = axutil_hash_next(env, hi))
+        {
+            axis2_policy_wrapper_t *wrapper = NULL;
+            axutil_hash_this(hi, NULL, NULL, &val);
+            wrapper = (axis2_policy_wrapper_t *) val;
+            if (wrapper)
+                 AXIS2_FREE(env->allocator, wrapper);
+            val = NULL;
+            wrapper = NULL;
+        }
         axutil_hash_free(policy_include->wrapper_elements, env);
     }
 



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