diff options
-rw-r--r-- | tools/perf/builtin-record.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 1a9098c697b4..d19058a7b84c 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -256,6 +256,10 @@ try_again: | |||
256 | "trying to fall back to cpu-clock-ticks\n"); | 256 | "trying to fall back to cpu-clock-ticks\n"); |
257 | attr->type = PERF_TYPE_SOFTWARE; | 257 | attr->type = PERF_TYPE_SOFTWARE; |
258 | attr->config = PERF_COUNT_SW_CPU_CLOCK; | 258 | attr->config = PERF_COUNT_SW_CPU_CLOCK; |
259 | if (pos->name) { | ||
260 | free(pos->name); | ||
261 | pos->name = NULL; | ||
262 | } | ||
259 | goto try_again; | 263 | goto try_again; |
260 | } | 264 | } |
261 | 265 | ||