projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b382440
)
perf tools: Don't free list head in parse_events__free_terms
author
David Ahern
<
[email protected]
>
Tue, 2 Jul 2013 19:27:23 +0000
(13:27 -0600)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 12 Jul 2013 16:46:14 +0000
(13:46 -0300)
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 <
[email protected]
>
Cc: Adrian Hunter <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/parse-events.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/parse-events.c
b/tools/perf/util/parse-events.c
index ef72e98a07a648e1cd1edffff4a11d3042799a0a..bcf83ee97e92363239d69126c6a8de9877cf0602 100644
(file)
--- a/
tools/perf/util/parse-events.c
+++ b/
tools/perf/util/parse-events.c
@@
-1260,6
+1260,4
@@
void parse_events__free_terms(struct list_head *terms)
list_for_each_entry_safe(term, h, terms, list)
free(term);
-
- free(terms);
}