Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 97929 invoked from network); 14 Nov 2007 09:39:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2007 09:39:07 -0000 Received: (qmail 28280 invoked by uid 500); 14 Nov 2007 09:38:54 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 28260 invoked by uid 500); 14 Nov 2007 09:38:54 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 28249 invoked by uid 99); 14 Nov 2007 09:38:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 01:38:54 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 09:39:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC27271424A for ; Wed, 14 Nov 2007 01:38:43 -0800 (PST) Message-ID: <1741213.1195033123767.JavaMail.jira@brutus> Date: Wed, 14 Nov 2007 01:38:43 -0800 (PST) From: "Damitha Kumarage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXIS2C-748) Memory leak in dep_engine.c In-Reply-To: <30558573.1193894750777.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damitha Kumarage updated AXIS2C-748: ------------------------------------ Fix Version/s: 1.2.0 > Memory leak in dep_engine.c > --------------------------- > > Key: AXIS2C-748 > URL: https://issues.apache.org/jira/browse/AXIS2C-748 > Project: Axis2-C > Issue Type: Bug > Components: core/deployment > Environment: Ubuntu 7.04 (Feisty Fawn) > Reporter: Senaka Fernando > Fix For: 1.2.0 > > Attachments: diff.txt > > > When we load the dep_engine, we fetch the out-fault phases and assign them to the configuration. During the fetching process a new array list is created. This contains the phases. However, before assigning it, we have duplicated the array list and assigned the duplicate. And, during the process we have not freed the initial (fetched) array list. > While going through the code, I understood that a duplicate is not necessary as the fetching process already creates a duplicate. Thus, I have removed the duplicate (new_out_fault_phases) and assigned the array list that was fetched (out_fault_phases), to the configuration. > This resolves the memory leak. (refer diff.txt) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org