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 2005/12/06 10:11:38 UTC

svn commit: r354383 - /webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c

Author: samisa
Date: Tue Dec  6 01:11:24 2005
New Revision: 354383

URL: http://svn.apache.org/viewcvs?rev=354383&view=rev
Log:
Added memory leak patch

Modified:
    webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c

Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c?rev=354383&r1=354382&r2=354383&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2_om_element.c Tue Dec  6 01:11:24 2005
@@ -318,6 +318,7 @@
                     (axis2_om_namespace_t *) (ns), env),uri) == 0)
             {
               
+		AXIS2_FREE ((*env)->allocator, hashindex);
                 return (axis2_om_namespace_t *) (ns);
             }
         }
@@ -428,6 +429,7 @@
             if (AXIS2_STRCMP(AXIS2_OM_NAMESPACE_GET_URI(
                     (axis2_om_namespace_t *)(ns), env), uri) == 0)
             {
+		AXIS2_FREE ((*env)->allocator, hash_index);
                 return (axis2_om_namespace_t *) (ns);
             }
         }