diff --git a/tools/perf/util/thread_map.c b/tools/perf/util/thread_map.c index 6ec3c5ca438f25c827dcfc1b7bde3491f8a5fe8c..371fb28fe5b1b95481c910cb2bf56068fe0509e2 100644 --- a/tools/perf/util/thread_map.c +++ b/tools/perf/util/thread_map.c @@ -304,6 +304,7 @@ static struct thread_map *thread_map__new_by_tid_str(const char *tid_str) out_free_threads: zfree(&threads); + strlist__delete(slist); goto out; }