tools lib traceevent: Add destructor for format_field
authorDavid Ahern <dsahern@gmail.com>
Thu, 19 Mar 2015 18:36:21 +0000 (12:36 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 21 Mar 2015 17:53:38 +0000 (14:53 -0300)
commit00ae1127a03d20f5ef89f3c1fe7d4720270fc2a5
treefb7cabd1c218d8235e9e88060fd36865fd25e61f
parent70e972788888315851a5c1b4982efbcafcd03b5b
tools lib traceevent: Add destructor for format_field

Move the calls that frees the resources allocated for a struct format_field to
a separate routine.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1426790181-19118-1-git-send-email-dsahern@gmail.com
[ Split this part from a larger patch, added pevent_ prefix as requested by Steven ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h