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)
commit574799bfdbc3a13e0b5e2f6af34b761bde743a9a
treeba56c148f77f645414ff46f2d86d111415372874
parent11c9abf2270793bd1c1b8828edb4223f8010e56c
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