From: Namhyung Kim Date: Thu, 10 Dec 2015 03:00:58 +0000 (+0900) Subject: perf thread_map: Free strlist on constructor error path X-Git-Tag: v4.5-rc1~171^2~22^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ecb48fde39e1d61ab8aff95581dcdfb572bcc28;p=platform%2Fkernel%2Flinux-exynos.git perf thread_map: Free strlist on constructor error path Signed-off-by: Namhyung Kim Reviewed-by: Josh Poimboeuf Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1449716459-23004-7-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/thread_map.c b/tools/perf/util/thread_map.c index 6ec3c5c..371fb28 100644 --- a/tools/perf/util/thread_map.c +++ b/tools/perf/util/thread_map.c @@ -304,6 +304,7 @@ out: out_free_threads: zfree(&threads); + strlist__delete(slist); goto out; }