perf probe: Fix memory leaks in add_perf_probe_events
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tue, 3 Aug 2010 02:11:40 +0000 (11:11 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Aug 2010 19:25:56 +0000 (16:25 -0300)
commit449e5b247ca7c9dc9fc3391b7eebfefdeb2ce1fc
tree22d9aafb65a2f5d921e278d02292c3feb3392614
parent58432e1f3625ef22b347ec8f9487e1852aa9ad67
perf probe: Fix memory leaks in add_perf_probe_events

Fix several memory leaks of pkgs and tevs in add_perf_probe_events().

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
LKML-Reference: <4C577ADC.1000309@hitachi.com>

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c