summaryrefslogtreecommitdiffstats
path: root/lib/dynamic_queue_limits.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-04-08 11:27:48 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 13:13:49 +0200
commitc10ea8447736b8c6041f4d3232a3cc4e95ebe4e0 (patch)
tree5a4d4673b5aa1a138fe275d3cc6e119031f0bc49 /lib/dynamic_queue_limits.c
parent8d70572f69ccb029bf28c53369d142cb35801d32 (diff)
downloadlinux-stable-c10ea8447736b8c6041f4d3232a3cc4e95ebe4e0.tar.gz
linux-stable-c10ea8447736b8c6041f4d3232a3cc4e95ebe4e0.tar.bz2
linux-stable-c10ea8447736b8c6041f4d3232a3cc4e95ebe4e0.zip
perf script: Fix memory leaks in list_scripts()
[ Upstream commit 3b4acbb92dbda4829e021e5c6d5410658849fa1c ] In case memory resources for *buf* and *paths* were allocated, jump to *out* and release them before return. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Gustavo A. R. Silva <gustavo@embeddedor.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Addresses-Coverity-ID: 1444328 ("Resource leak") Fixes: 6f3da20e151f ("perf report: Support builtin perf script in scripts menu") Link: http://lkml.kernel.org/r/20190408162748.GA21008@embeddedor Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions