diff options
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 3e5f356a524..589ba3a9242 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -844,10 +844,8 @@ int cmd_stat(int argc, const char **argv, const char *prefix __used) | |||
844 | if (status != -1) | 844 | if (status != -1) |
845 | print_stat(argc, argv); | 845 | print_stat(argc, argv); |
846 | out_free_fd: | 846 | out_free_fd: |
847 | list_for_each_entry(pos, &evsel_list, node) { | 847 | list_for_each_entry(pos, &evsel_list, node) |
848 | perf_evsel__free_fd(pos); | ||
849 | perf_evsel__free_stat_priv(pos); | 848 | perf_evsel__free_stat_priv(pos); |
850 | } | ||
851 | out: | 849 | out: |
852 | return status; | 850 | return status; |
853 | } | 851 | } |