diff options
author | Namhyung Kim <[email protected]> | 2014-01-15 10:45:25 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-01-15 15:10:28 -0300 |
commit | 3026bba3c37711234771349ca020d9a85e572f60 (patch) | |
tree | 469bcf0f9b8b1e0f5dd67935e6185bc4fe9b0e07 /tools/perf/util/trace-event-scripting.c | |
parent | 3c6d8d84423932f1d9949179c6acdf2405515ee4 (diff) |
tools lib traceevent: Check return value of realloc()
If realloc() fails, it'll leak the buffer. Also increate buffer size
only if the allocation succeeded.
Signed-off-by: Namhyung Kim <[email protected]>
Reviewed-by: Jiri Olsa <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions