From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18900 invoked by alias); 14 Aug 2009 23:37:07 -0000 Received: (qmail 18865 invoked by uid 22791); 14 Aug 2009 23:37:07 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Aug 2009 23:37:00 +0000 Received: from zps18.corp.google.com (zps18.corp.google.com [172.25.146.18]) by smtp-out.google.com with ESMTP id n7ENauBe007483 for ; Sat, 15 Aug 2009 00:36:57 +0100 Received: from localhost (ruffy.mtv.corp.google.com [172.18.118.116]) by zps18.corp.google.com with ESMTP id n7ENasbM028903 for ; Fri, 14 Aug 2009 16:36:54 -0700 Received: by localhost (Postfix, from userid 67641) id 811FD8469B; Fri, 14 Aug 2009 16:36:54 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [obv] Remove double free of canon_name Message-Id: <20090814233654.811FD8469B@localhost> Date: Sat, 15 Aug 2009 00:04:00 -0000 From: dje@google.com (Doug Evans) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00211.txt.bz2 Hi. Checked in as obvious. 2009-08-14 Doug Evans * symfile.c (find_separate_debug_file): Remove double free of canon_name. Index: symfile.c =================================================================== RCS file: /cvs/src/src/gdb/symfile.c,v retrieving revision 1.241 diff -u -p -r1.241 symfile.c --- symfile.c 10 Aug 2009 22:09:22 -0000 1.241 +++ symfile.c 14 Aug 2009 23:34:55 -0000 @@ -1457,7 +1457,6 @@ find_separate_debug_file (struct objfile xfree (canon_name); xfree (basename); xfree (dir); - xfree (canon_name); return xstrdup (debugfile); } }