perf tools: Fix memory leak on error
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 25 Jan 2013 10:20:47 +0000 (11:20 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 30 Jan 2013 13:40:05 +0000 (10:40 -0300)
commit0b9e01a4f0d1c8277da6824fe060ccb0434d2fde
tree70016430c90da177f7bceea1663c5318ae13a689
parent8eb44dd76ac994b020e5cfe72635c90d9e0ad995
perf tools: Fix memory leak on error

cppcheck reported:
[util/event.c:480]: (error) Memory leak: event

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Link: http://lkml.kernel.org/r/2717013.8dV0naNhAV@storm
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c