diff options
author | Quentin Monnet <[email protected]> | 2019-08-15 15:22:23 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-08-15 22:09:41 -0700 |
commit | d34b044038bfb0e19caa8b019910efc465f41d5f (patch) | |
tree | 6972181b15474d393f514cfdd4a8b24d105201e7 /tools/perf/scripts/python/syscall-counts.py | |
parent | 27df5c7068bf23cab282dc64b1c9894429b3b8a0 (diff) |
tools: bpftool: close prog FD before exit on showing a single program
When showing metadata about a single program by invoking
"bpftool prog show PROG", the file descriptor referring to the program
is not closed before returning from the function. Let's close it.
Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool")
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions