perf header: Fix bogus group name
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 18 Nov 2013 02:20:43 +0000 (11:20 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Nov 2013 13:33:57 +0000 (10:33 -0300)
commit210e812f036736aeda097d9a6ef84b1f2b334bae
treef2881ec2ca780cacc5cfec392d6c4751c0b51fbc
parenta5285ad9e30fd90b88a11adcab97bd4c3ffe44eb
perf header: Fix bogus group name

When processing event group descriptor in perf file header, we reuse an
allocated group name but forgot to prevent it from freeing.

Reported-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1384741244-7271-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c