diff --git a/tests/xe/xe_debugfs.c b/tests/xe/xe_debugfs.c index 29b0078f3901fa097537b6bf740af4d17f30a59a..ad6191fbc5f86e9a205b6b2d5df055a69d6cbb41 100644 --- a/tests/xe/xe_debugfs.c +++ b/tests/xe/xe_debugfs.c @@ -146,7 +146,7 @@ test_base(int fd) validate_entries(fd, "", expected_files, ARRAY_SIZE(expected_files)); - free(config); + xe_device_put(fd); } /** @@ -250,7 +250,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) igt_fixture { fd = drm_open_driver(DRIVER_XE); - xe_device_get(fd); __igt_debugfs_dump(fd, "info", IGT_LOG_INFO); } @@ -272,7 +271,6 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) } igt_fixture { - xe_device_put(fd); close(fd); } }