perf stat: Fix up resource release order
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Feb 2011 18:18:10 +0000 (16:18 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Feb 2011 18:18:10 +0000 (16:18 -0200)
commit0015e2e101f5fd3256ab8b5a374c0e8806098871
tree3c889612ca4ede04a5b13d1cc3499479b60c66a3
parent568bb7b8e856b9efb98a3f63259c717adc1b96b8
perf stat: Fix up resource release order

That was causing a SEGV on selected old distros.

Problem introduced in 7e2ed09.

Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c