diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-04-08 16:27:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-26 14:58:30 +0000 |
| commit | 3b4acbb92dbda4829e021e5c6d5410658849fa1c (patch) | |
| tree | 22e536fc37323733041f88628eb878922098538c /tools/perf/util/python.c | |
| parent | perf report: Fix --ns time sort key output (diff) | |
| download | kernel-3b4acbb92dbda4829e021e5c6d5410658849fa1c.tar.gz kernel-3b4acbb92dbda4829e021e5c6d5410658849fa1c.zip | |
perf script: Fix memory leaks in list_scripts()
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 <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Gustavo A. R. Silva <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
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 <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
