]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Free the terms list_head in parse_events__free_terms()
authorWang Nan <wangnan0@huawei.com>
Fri, 12 Feb 2016 20:01:17 +0000 (17:01 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Feb 2016 20:01:17 +0000 (17:01 -0300)
commitc72da51dc57784279d9c7d9a6a8868545328d776
tree141539c9f6ead8282571b298ef54919236e92154
parent28f5e421e3ff4a79fddd99f88c05bd993b1f548b
perf tools: Free the terms list_head in parse_events__free_terms()

Fixing a leak, since code calling parse_events__free_terms() expect it
to free the list_head too.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: He Kuang <hekuang@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
[ Spun off from another patch ]
Link: http://lkml.kernel.org/r/1454680939-24963-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/parse-events.c