From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12707 invoked by alias); 4 Jan 2011 16:25:46 -0000 Received: (qmail 12673 invoked by uid 22791); 4 Jan 2011 16:25:45 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Jan 2011 16:25:41 +0000 From: "ettl.martin at gmx dot de" To: java-prs@gcc.gnu.org Subject: [Bug java/47171] New: [cppcheck][PATCH] found a resource leak in gcc/gcc/java/resource.c X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ettl.martin at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 04 Jan 2011 16:25:00 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q1/txt/msg00000.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47171 Summary: [cppcheck][PATCH] found a resource leak in gcc/gcc/java/resource.c Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned@gcc.gnu.org ReportedBy: ettl.martin@gmx.de Created attachment 22901 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22901 proposed patch to fix the issue during a check of gcc's sources with the static code analysis tool cppcheck (http://sourceforge.net/projects/cppcheck/) the tool discoverd resource leaks in file gcc/gcc/java/resource.c . Please refer the attached patch that fixes the issue. Best regards from the cppcheck team Ettl Martin