Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbbLIP0L (ORCPT ); Wed, 9 Dec 2015 10:26:11 -0500 Received: from mail.kernel.org ([198.145.29.136]:54433 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbbLIP0J (ORCPT ); Wed, 9 Dec 2015 10:26:09 -0500 Date: Wed, 9 Dec 2015 12:26:05 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: Peter Zijlstra , Adrian Hunter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Ingo Molnar , Namhyung Kim , Jiri Olsa Subject: Re: [PATCH perf/core 22/22] perf: Fix write_numa_topology to put cpu_map instead of free Message-ID: <20151209152605.GM15864@kernel.org> References: <20151209021047.10245.8918.stgit@localhost.localdomain> <20151209021135.10245.79046.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151209021135.10245.79046.stgit@localhost.localdomain> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 29 Em Wed, Dec 09, 2015 at 11:11:35AM +0900, Masami Hiramatsu escreveu: > Fix write_numa_topology to put cpu_map instead of free because > cpu_map is managed based on refcnt. thanks, applied! > Signed-off-by: Masami Hiramatsu > --- > tools/perf/util/header.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c > index 4383800..5ac7bdb 100644 > --- a/tools/perf/util/header.c > +++ b/tools/perf/util/header.c > @@ -724,7 +724,7 @@ static int write_numa_topology(int fd, struct perf_header *h __maybe_unused, > done: > free(buf); > fclose(fp); > - free(node_map); > + cpu_map__put(node_map); > return ret; > } > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/