aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2010-05-18 23:04:28 -0300
committerArnaldo Carvalho de Melo <[email protected]>2010-05-18 23:04:28 -0300
commitb448c4b613542c16ad66042017946e68da4e422b (patch)
tree31f351ef2875a2ae749a6ae765b1f66820716b96 /tools/perf/util/scripting-engines/trace-event-perl.c
parenta41794cdd7ee94a5199e14f642c26d649d383fa5 (diff)
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 <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Tom Zanussi <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions