diff options
author | Namhyung Kim <[email protected]> | 2012-01-20 10:12:45 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-01-21 09:33:41 +0100 |
commit | fd45c15f13e754f3c106427e857310f3e0813951 (patch) | |
tree | 18c02a2b1037b773813b2f20fc4d826d7645ad96 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
perf: Don't call release_callchain_buffers() if allocation fails
When alloc_callchain_buffers() fails, it frees all of
entries before return. In addition, calling the
release_callchain_buffers() will cause a NULL pointer
dereference since callchain_cpu_entries is not set.
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions