]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix two memory leaks in prog_tests
authorMykola Lysenko <mykolal@fb.com>
Thu, 28 Apr 2022 22:57:44 +0000 (15:57 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 29 Apr 2022 04:53:50 +0000 (21:53 -0700)
commit20b87e7c29dffcfa3f96f2e99daec84fd46cabdb
tree2542b4feff1e09dbb9d5383b9ed75ef2e62d3a46
parenta2c70dbc3407b99e716a362be2df3ed9bbed1d35
selftests/bpf: Fix two memory leaks in prog_tests

Fix log_fp memory leak in dispatch_thread_read_log.
Remove obsolete log_fp clean-up code in dispatch_thread.

Also, release memory of subtest_selector. This can be
reproduced with -n 2/1 parameters.

Signed-off-by: Mykola Lysenko <mykolal@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220428225744.1961643-1-mykolal@fb.com
tools/testing/selftests/bpf/test_progs.c