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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7ecb48fde39e1d61ab8aff95581dcdfb572bcc28;p=openwrt%2Fstaging%2Fblogic.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 6ec3c5ca438f..371fb28fe5b1 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; }