[PATCH 6.0 712/862] selftests/bpf: Free the allocated resources after test case succeeds