aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2015-04-22 16:18:14 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-05-05 18:13:13 -0300
commitf2b487db45f2aa203892384f6a08f0a761edad5d (patch)
tree64b69ff4b238f0eaea84d4a95a15040376c3c6da /tools/perf/scripts/python
parentd8a0f80042efc4ba08977f3d66fc4678037fe456 (diff)
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 <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: David Ahern <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions