File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1401,6 +1401,8 @@ static void test_map_rdonly(void)
14011401 /* Check that key=2 is not found. */
14021402 assert (bpf_map_lookup_elem (fd , & key , & value ) == -1 && errno == ENOENT );
14031403 assert (bpf_map_get_next_key (fd , & key , & value ) == -1 && errno == ENOENT );
1404+
1405+ close (fd );
14041406}
14051407
14061408static void test_map_wronly (void )
@@ -1423,6 +1425,8 @@ static void test_map_wronly(void)
14231425 /* Check that key=2 is not found. */
14241426 assert (bpf_map_lookup_elem (fd , & key , & value ) == -1 && errno == EPERM );
14251427 assert (bpf_map_get_next_key (fd , & key , & value ) == -1 && errno == EPERM );
1428+
1429+ close (fd );
14261430}
14271431
14281432static void prepare_reuseport_grp (int type , int map_fd , size_t map_elem_size ,
You can’t perform that action at this time.
0 commit comments