perf thread_map: Free strlist on constructor error path
authorNamhyung Kim <[email protected]>
Thu, 10 Dec 2015 03:00:58 +0000 (12:00 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 10 Dec 2015 18:47:51 +0000 (15:47 -0300)
Signed-off-by: Namhyung Kim <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/thread_map.c

index 6ec3c5ca438f25c827dcfc1b7bde3491f8a5fe8c..371fb28fe5b1b95481c910cb2bf56068fe0509e2 100644 (file)
@@ -304,6 +304,7 @@ out:
 
 out_free_threads:
        zfree(&threads);
+       strlist__delete(slist);
        goto out;
 }