]> git.baikalelectronics.ru Git - kernel.git/commit
perf probe: Fix some error exit paths
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 May 2010 02:04:28 +0000 (23:04 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 May 2010 02:04:28 +0000 (23:04 -0300)
commit0cb3210defa8df66deeca680ed26efc733ddf92b
tree31f351ef2875a2ae749a6ae765b1f66820716b96
parent909f75c1e5d3475f7d3dc488fb0484fbdbe10926
perf probe: Fix some error exit paths

That could leave filedescriptors open and leak memory. Also stop using
xmalloc, use malloc and handle results just like other error cases in
the same routine that used it.

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-finder.c