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 di...@apache.org on 2006/04/13 10:46:21 UTC
svn commit: r393763 -
/webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c
Author: dinesh
Date: Thu Apr 13 01:46:19 2006
New Revision: 393763
URL: http://svn.apache.org/viewcvs?rev=393763&view=rev
Log:
guththila_stack_free () tends to memory leaks when there are no elements
Modified:
webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c
Modified: webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c?rev=393763&r1=393762&r2=393763&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c (original)
+++ webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c Thu Apr 13 01:46:19 2006
@@ -91,11 +91,13 @@
guththila_stack_t * stack)
{
if (stack && (stack->pointer > 0))
- {
+ {
guththila_element_t *ele = stack->tail;
guththila_stack_free_rec (environment, stack, ele);
GUTHTHILA_FREE (environment->allocator, stack);
}
+ else
+ GUTHTHILA_FREE (environment->allocator, stack);
}