diff options
author | Namhyung Kim <namhyung@kernel.org> | 2015-12-09 22:00:58 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-10 13:47:51 -0500 |
commit | 7ecb48fde39e1d61ab8aff95581dcdfb572bcc28 (patch) | |
tree | ed0d93f44c4d0b725587cdce5b7ca7ec1c0fa9a2 /tools/perf/util/thread_map.c | |
parent | f8a5c0b24b8b1e77a0812b0c8251db0afc0524b7 (diff) |
perf thread_map: Free strlist on constructor error path
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1449716459-23004-7-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/thread_map.c')
-rw-r--r-- | tools/perf/util/thread_map.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/thread_map.c b/tools/perf/util/thread_map.c index 6ec3c5ca438f..371fb28fe5b1 100644 --- a/tools/perf/util/thread_map.c +++ b/tools/perf/util/thread_map.c | |||
@@ -304,6 +304,7 @@ out: | |||
304 | 304 | ||
305 | out_free_threads: | 305 | out_free_threads: |
306 | zfree(&threads); | 306 | zfree(&threads); |
307 | strlist__delete(slist); | ||
307 | goto out; | 308 | goto out; |
308 | } | 309 | } |
309 | 310 | ||