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 ka...@apache.org on 2006/09/21 15:46:50 UTC

svn commit: r448553 - /webservices/axis2/trunk/c/modules/core/util/core_utils.c

Author: kaushalye
Date: Thu Sep 21 06:46:49 2006
New Revision: 448553

URL: http://svn.apache.org/viewvc?view=rev&rev=448553
Log:
Applying patch for meory leaks fixed in core_utis.c - JIRA AXIS2C-253


Modified:
    webservices/axis2/trunk/c/modules/core/util/core_utils.c

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=448553&r1=448552&r2=448553
==============================================================================
--- webservices/axis2/trunk/c/modules/core/util/core_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/util/core_utils.c Thu Sep 21 06:46:49 2006
@@ -308,6 +308,12 @@
                         axis2_hash_set(default_modules, module_name_str,
                                 AXIS2_HASH_KEY_STRING, module_ver_str);
                     }
+
+                    if  (module_name_str)
+                    {
+                        AXIS2_FREE(env->allocator, module_name_str);
+                        module_name_str = NULL;
+                    }
                 }
             }
         }
@@ -330,6 +336,13 @@
                     (axis2_char_t *)val, (axis2_char_t *)key_string);
         }
     }
+
+    if (default_modules)
+    {
+        axis2_hash_free(default_modules, env);
+        default_modules = NULL;
+    }
+
     return AXIS2_SUCCESS;
 }
 



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