From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9863 invoked by alias); 4 Jan 2011 16:20:19 -0000 Received: (qmail 9396 invoked by uid 22791); 4 Jan 2011 16:20:16 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_SUB_RAND_LETTRS4 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:20:12 +0000 From: "ettl.martin at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/47170] New: [cppcheck][PATCH] found resource leaks in gcc/intl/localealias.c X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other 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:20:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00286.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47170 Summary: [cppcheck][PATCH] found resource leaks in gcc/intl/localealias.c Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned@gcc.gnu.org ReportedBy: ettl.martin@gmx.de Created attachment 22900 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22900 proposed patch to fix the issues 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/intl/localealias.c . Please refer the attached patch that fixes the issue. Best regards from the cppcheck team Ettl Martin