mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
selftests/bpf: Fix extra free of subtest_state->name
The name has already been freed in the free_subtest_state function and does not need to be freed again. The extra free is noop since the pointer was already set to NULL. Signed-off-by: Feng Yang <yangfeng@kylinos.cn> Link: https://lore.kernel.org/bpf/20260723085100.482147-2-yangfeng59949@163.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
parent
1adb5b8931
commit
791841e038
|
|
@ -1886,7 +1886,6 @@ static int worker_main_send_subtests(int sock, struct test_state *state)
|
|||
worker_main_send_log(sock, subtest_state->log_buf, subtest_state->log_cnt);
|
||||
|
||||
free_subtest_state(subtest_state);
|
||||
free(subtest_state->name);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user