diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2012-09-24 11:16:40 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-09-24 11:43:38 -0300 |
commit | e0dcd6fb2564c20e53ee8b7d2884a7e375fe9e75 (patch) | |
tree | 6b39707b2884f9eb93a5831ff850898a157e8ce8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 746f16ec6ae370d58ecf4370c9955bd6f35d44a3 (diff) |
perf timechart: Use zalloc and fix a couple leaks
Use zalloc for the malloc+memset open coded sequence.
Fix leak on the #ifdef'ed C state handling and when detecting invalid
data in p_state_change().
Cc: Arjan van de Ven <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions