Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 15838 invoked from network); 13 Apr 2006 08:46:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2006 08:46:49 -0000 Received: (qmail 99327 invoked by uid 500); 13 Apr 2006 08:46:43 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 99240 invoked by uid 500); 13 Apr 2006 08:46:42 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 99225 invoked by uid 500); 13 Apr 2006 08:46:42 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 99220 invoked by uid 99); 13 Apr 2006 08:46:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 01:46:42 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Apr 2006 01:46:42 -0700 Received: (qmail 15529 invoked by uid 65534); 13 Apr 2006 08:46:21 -0000 Message-ID: <20060413084621.15528.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r393763 - /webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_stack.c Date: Thu, 13 Apr 2006 08:46:21 -0000 To: axis2-cvs@ws.apache.org From: dinesh@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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); }