axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: [Axis2] more memory leak fixes
Date Tue, 06 Dec 2005 09:16:55 GMT
Patch applied.

This is fantastic: I get 0 leaks with vlagrind test using libxml:
==12913== LEAK SUMMARY:
==12913==    definitely lost: 0 bytes in 0 blocks.
==12913==      possibly lost: 0 bytes in 0 blocks.
==12913==    still reachable: 870 bytes in 20 blocks.
==12913==         suppressed: 0 bytes in 0 blocks

Many thanks for the patch.

Samisa...

Sahan Gamage wrote:

> 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);
>             }
>         }
>  
>


Mime
View raw message