linux/tools/lib
Steven Rostedt be57abca40 tools lib traceevent: Fix memory leak in pretty_print()
commit de04f8657d upstream.

Commit 12e55569a2 "tools lib traceevent: Use helper trace-seq in print
functions like kernel does" added a extra trace_seq helper to process
string arguments like the kernel does it. But the difference between the
kernel and the userspace library is that the kernel's trace_seq structure
has a static allocated buffer. The userspace one has a dynamically
allocated one. It requires a trace_seq_destroy(), otherwise it produces
a nasty memory leak.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20140422192330.6bb09bf8@gandalf.local.home
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-31 13:20:27 -07:00
..
api tools/: Convert to new topic libraries 2013-12-16 16:03:27 -03:00
lockdep tools/liblockdep: Use realpath for srctree and objtree 2014-02-26 21:22:01 -05:00
symbol tools lib symbol: Start carving out symbol parsing routines from perf 2013-12-13 10:30:20 -03:00
traceevent tools lib traceevent: Fix memory leak in pretty_print() 2014-05-31 13:20:27 -07:00