diff options
author | Jiri Olsa <[email protected]> | 2014-02-02 22:38:49 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-02-18 09:34:47 -0300 |
commit | b58f608e31010cb76ee953a6919f9d96b4eb58d9 (patch) | |
tree | 4449a1b4ac70458795a9670845c5260feeb50d7f | |
parent | a601fdff1af20ea0208e918f5e97a247a3c37a40 (diff) |
perf tools: Fix memory leak in event_format__print function
Properly destroying trace_seq object.
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[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]>
-rw-r--r-- | tools/perf/util/trace-event-parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index e0d6d07f6848..c36636fd825b 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c @@ -126,6 +126,7 @@ void event_format__print(struct event_format *event, trace_seq_init(&s); pevent_event_info(&s, event, &record); trace_seq_do_printf(&s); + trace_seq_destroy(&s); } void parse_proc_kallsyms(struct pevent *pevent, |