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; }