diff options
author | Namhyung Kim <namhyung@kernel.org> | 2015-04-22 09:18:14 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-05 23:13:13 +0200 |
commit | f2b487db45f2aa203892384f6a08f0a761edad5d (patch) | |
tree | 64b69ff4b238f0eaea84d4a95a15040376c3c6da /tools/perf/util/lzma.c | |
parent | perf tools: Move init_have_children field to the unnamed union (diff) | |
download | linux-f2b487db45f2aa203892384f6a08f0a761edad5d.tar.xz linux-f2b487db45f2aa203892384f6a08f0a761edad5d.zip |
perf hists browser: Fix possible memory leak
The options array saves strings for each popup menu item. The number of
items can be vary according to the currently selected item. So it can
leak some memory if it's exited from a small item. Fix it by freeing
all items when loop terminates.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429687101-4360-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/lzma.c')
0 files changed, 0 insertions, 0 deletions