]> Pileus Git - ~andy/linux/blobdiff - tools/perf/util/evlist.c
perf evlist: Close fds on destructor
[~andy/linux] / tools / perf / util / evlist.c
index 143eaf05178f10414a15fad82bcd9c26ac69df13..a083bdc4680e8f56a88f843eda501dc00cb50fa7 100644 (file)
@@ -107,6 +107,7 @@ void perf_evlist__exit(struct perf_evlist *evlist)
 
 void perf_evlist__delete(struct perf_evlist *evlist)
 {
+       perf_evlist__close(evlist);
        cpu_map__delete(evlist->cpus);
        thread_map__delete(evlist->threads);
        evlist->cpus = NULL;