diff --git a/tests/setbacklight.c b/tests/setbacklight.c index 8c7eb275..92bd4bf3 100644 --- a/tests/setbacklight.c +++ b/tests/setbacklight.c @@ -74,9 +74,11 @@ get_drm_connector_type(struct udev_device *drm_device, uint32_t connector_id) drmModeFreeConnector(connector); drmModeFreeResources(res); + close(fd); return connector_type; } + close(fd); drmModeFreeResources(res); return -1; }