From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754627AbcGEGcV (ORCPT ); Tue, 5 Jul 2016 02:32:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51180 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754060AbcGEGcU (ORCPT ); Tue, 5 Jul 2016 02:32:20 -0400 Date: Tue, 5 Jul 2016 08:32:15 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra Subject: Re: [PATCH 2/4] perf tools: Do the error path hist_entry release in hist_entry__new Message-ID: <20160705063215.GB15745@krava> References: <1467640899-3776-1-git-send-email-jolsa@kernel.org> <1467640899-3776-3-git-send-email-jolsa@kernel.org> <20160704190947.GW5324@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160704190947.GW5324@kernel.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 05 Jul 2016 06:32:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 04, 2016 at 04:09:47PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 04, 2016 at 04:01:37PM +0200, Jiri Olsa escreveu: > > It's better to release the hist_entry object in > > hist_entry__new function (where it's allocated) > > rather than in hist_entry__init. > > Please combine this with the previous patch, that way this all gets > clearer :-\ ok, will change thanks, jirka