diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2015-03-24 09:57:50 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-24 12:11:19 -0300 |
commit | 99ad1417db2e83530b88e3eff1a40285d6ebfee9 (patch) | |
tree | 20e1f266226b4cef56283c5c1a6a0b5799d467b2 /net/unix/af_unix.c | |
parent | deab6f55a2fe6fe044af61c9aad6a8e90cda6499 (diff) |
tools lib traceevent: Copy trace_clock and free it
The pevent->trace_clock should not be a direct pointer to what was
given. It should be copied and freed.
Note, valgrind pointed this out when a caller passed in a pointer that
needed to be freed and it never was. Ideally, pevent should copy it
(which this change does), and free the copy. It's up to the caller to
free the clock string passed in.
Signed-off-by: Steven Rostedt <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions