From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20427 invoked by alias); 4 Jan 2011 00:31:05 -0000 Received: (qmail 20418 invoked by uid 22791); 4 Jan 2011 00:31:04 -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 00:31:00 +0000 From: "ettl.martin at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/47159] New: [cppcheck][PATCH] found missmatch in allocation and deallocation of memory in gcc/gcc/go/gofrontend/import-archive.cc X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go 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: ian at airs dot com 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 00:31: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/msg00234.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47159 Summary: [cppcheck][PATCH] found missmatch in allocation and deallocation of memory in gcc/gcc/go/gofrontend/import-archive.cc Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: go AssignedTo: ian@airs.com ReportedBy: ettl.martin@gmx.de Created attachment 22889 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22889 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 a missmatch in allocation and deallocation of memory in file gcc/gcc/go/gofrontend/import-archive.cc. Please refer the attached patch that fixes the issues. Best regards from the cppcheck team Ettl Martin