Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932164AbbLJISD (ORCPT ); Thu, 10 Dec 2015 03:18:03 -0500 Received: from terminus.zytor.com ([198.137.202.10]:55142 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754622AbbLJISA (ORCPT ); Thu, 10 Dec 2015 03:18:00 -0500 Date: Thu, 10 Dec 2015 00:17:43 -0800 From: tip-bot for Masami Hiramatsu Message-ID: Cc: masami.hiramatsu.pt@hitachi.com, hpa@zytor.com, acme@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, adrian.hunter@intel.com, namhyung@kernel.org, jolsa@redhat.com, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: hpa@zytor.com, masami.hiramatsu.pt@hitachi.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, mingo@kernel.org, acme@redhat.com, a.p.zijlstra@chello.nl, tglx@linutronix.de, adrian.hunter@intel.com, namhyung@kernel.org In-Reply-To: <20151209021135.10245.79046.stgit@localhost.localdomain> References: <20151209021135.10245.79046.stgit@localhost.localdomain> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Fix write_numa_topology to put cpu_map instead of free Git-Commit-ID: 5191d887681dd34ba3993a438d5746378952885a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1556 Lines: 41 Commit-ID: 5191d887681dd34ba3993a438d5746378952885a Gitweb: http://git.kernel.org/tip/5191d887681dd34ba3993a438d5746378952885a Author: Masami Hiramatsu AuthorDate: Wed, 9 Dec 2015 11:11:35 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Dec 2015 13:42:01 -0300 perf tools: Fix write_numa_topology to put cpu_map instead of free Fix write_numa_topology to put cpu_map instead of free because cpu_map is managed based on refcnt. Signed-off-by: Masami Hiramatsu Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20151209021135.10245.79046.stgit@localhost.localdomain Signed-off-by: Arnaldo Carvalho de Melo --- 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/