projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6675c2
)
tests/setbacklight: Close filedescriptor on return paths
author
Rob Bradford
<rob@linux.intel.com>
Thu, 10 Jan 2013 19:48:53 +0000
(19:48 +0000)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 10 Jan 2013 21:07:08 +0000
(16:07 -0500)
tests/setbacklight.c
patch
|
blob
|
history
diff --git
a/tests/setbacklight.c
b/tests/setbacklight.c
index
8c7eb27
..
92bd4bf
100644
(file)
--- 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;
}