From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1510 invoked by alias); 30 Jan 2015 03:13:16 -0000 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 Received: (qmail 1449 invoked by uid 89); 30 Jan 2015 03:13:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 30 Jan 2015 03:13:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B779D116798; Thu, 29 Jan 2015 22:13:02 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M6ma-PUpbKoz; Thu, 29 Jan 2015 22:13:02 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5FDAA11678D; Thu, 29 Jan 2015 22:13:02 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id B00A1491CD; Fri, 30 Jan 2015 07:12:58 +0400 (RET) Date: Fri, 30 Jan 2015 03:40:00 -0000 From: Joel Brobecker To: Simon Marchi Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 1/6] Free results of varobj_get_expression Message-ID: <20150130031258.GJ5193@adacore.com> References: <1422559716-5480-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1422559716-5480-1-git-send-email-simon.marchi@ericsson.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-01/txt/msg00790.txt.bz2 On Thu, Jan 29, 2015 at 02:28:31PM -0500, Simon Marchi wrote: > varobj_get_expression returns an allocated string, which must be freed > by the caller. > > gdb/ChangeLog: > > * mi-cmd-var.c (print_varobj): Free varobj_get_expression > result. > (mi_cmd_var_info_expression): Same. > * varobj.c (varobj_get_expression): Mention in the comment that > the result must by freed by the caller. OK! Thank you, -- Joel