From: Namhyung Kim Date: Wed, 22 Apr 2015 07:18:14 +0000 (+0900) Subject: perf hists browser: Fix possible memory leak X-Git-Tag: omap-for-v4.3/legacy-v2-signed~210^2~50^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2b487db45f2aa203892384f6a08f0a761edad5d;p=pandora-kernel.git 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 Acked-by: Jiri Olsa Cc: David Ahern Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1429687101-4360-4-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed