diff options
author | Rob Bradford <rob@linux.intel.com> | 2013-01-10 19:48:53 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-01-10 16:07:08 -0500 |
commit | c59a33a1e2142e0bada8bd19a1a9f86d807c058a (patch) | |
tree | 2e863b501cd02b1a6f686b2266c22d620fdd65c6 /tests | |
parent | e6675c28b5822ed78937cdeeb76fb9dbbdafbc90 (diff) |
tests/setbacklight: Close filedescriptor on return paths
Diffstat (limited to 'tests')
-rw-r--r-- | tests/setbacklight.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |