aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorArtem Savkov <[email protected]>2022-04-21 15:23:17 +0200
committerDaniel Borkmann <[email protected]>2022-04-21 18:48:04 +0200
commit6a12b8e20d7e72386594a9dbe7bf2d7fae3b3aa6 (patch)
tree8a3931abcf85728ca96066589287b3efa9cf5be7 /tools/perf/scripts/python/export-to-sqlite.py
parent920fd5e1771db8b338d4145c2d30d60bf0bcce99 (diff)
selftests/bpf: Fix prog_tests uprobe_autoattach compilation error
I am getting the following compilation error for prog_tests/uprobe_autoattach.c: tools/testing/selftests/bpf/prog_tests/uprobe_autoattach.c: In function ‘test_uprobe_autoattach’: ./test_progs.h:209:26: error: pointer ‘mem’ may be used after ‘free’ [-Werror=use-after-free] The value of mem is now used in one of the asserts, which is why it may be confusing compilers. However, it is not dereferenced. Silence this by moving free(mem) after the assert block. Fixes: 1717e248014c ("selftests/bpf: Uprobe tests should verify param/return values") Signed-off-by: Artem Savkov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions