From 343a0bfd92329ea121f7aad0304155170cc7aed7 Mon Sep 17 00:00:00 2001 From: David Ahern Date: Tue, 8 May 2012 10:50:11 -0600 Subject: [PATCH] --- yaml --- r: 304928 b: refs/heads/master c: d1cae34d6fda59391e1b06ac1642ef4a740ba3ef h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-record.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ed156a7d1fef..8fd426f92c2d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 40491eaa46a693e8c6ef94102350a747c63e584d +refs/heads/master: d1cae34d6fda59391e1b06ac1642ef4a740ba3ef diff --git a/trunk/tools/perf/builtin-record.c b/trunk/tools/perf/builtin-record.c index 1a9098c697b4..d19058a7b84c 100644 --- a/trunk/tools/perf/builtin-record.c +++ b/trunk/tools/perf/builtin-record.c @@ -256,6 +256,10 @@ static void perf_record__open(struct perf_record *rec) "trying to fall back to cpu-clock-ticks\n"); attr->type = PERF_TYPE_SOFTWARE; attr->config = PERF_COUNT_SW_CPU_CLOCK; + if (pos->name) { + free(pos->name); + pos->name = NULL; + } goto try_again; }