Hi,
I have fixed a memory leak in the axis2_om_element.c.
Please apply the patch and commit the code.
- Sahan
Index: om/src/axis2_om_element.c
===================================================================
--- om/src/axis2_om_element.c (revision 354357)
+++ om/src/axis2_om_element.c (working copy)
@@ -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);
}
}