]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix memory leak when synthesizing thread records
authorNamhyung Kim <namhyung@kernel.org>
Mon, 17 Mar 2014 01:45:49 +0000 (10:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Mar 2014 21:17:01 +0000 (18:17 -0300)
commit8cb18ad3483a6aed7725f4440c77f339e083f049
treeba56c148f77f645414ff46f2d86d111415372874
parent21f4a5a38fe89fc6f3f2fc6e2f7e75af8cc099c1
perf tools: Fix memory leak when synthesizing thread records

Checking default guest machine should be done before allocating event
structures otherwise it'll leak memory.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Link: http://lkml.kernel.org/r/87ob15tx6a.fsf@sejong.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c