perf tools: Don't free list head in parse_events__free_terms
authorDavid Ahern <dsahern@gmail.com>
Tue, 2 Jul 2013 19:27:23 +0000 (13:27 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:46:14 +0000 (13:46 -0300)
commit0142dab01cd690f6e376f1fb4d4462beb054dfaf
tree28dfd164e1b81478e81c9b9fcc06769c708842d2
parentb3824404ebbd489858f3a7097c715120118fa5cd
perf tools: Don't free list head in parse_events__free_terms

Function should only be freeing the entries in the list in case of
failure, as those were allocated there, not the list_head itself.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1372793245-4136-5-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c