From: Steven Rostedt (Red Hat) Date: Tue, 24 Mar 2015 13:57:50 +0000 (-0400) Subject: tools lib traceevent: Copy trace_clock and free it X-Git-Tag: omap-for-v4.2/o2_dc~146^2~57^2~9 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ad1417db2e83530b88e3eff1a40285d6ebfee9;p=pandora-kernel.git 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 Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20150324135922.695906738@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed