backlight: Revamp error handling code to not leak the directory
authorRob Bradford <rob@linux.intel.com>
Wed, 5 Dec 2012 18:47:09 +0000 (18:47 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 7 Dec 2012 03:33:01 +0000 (22:33 -0500)
commit546c856ade4908ccd2e3a1d9bbd1633f3fb52194
treee3c3dad77d993047c66282fec48d6a69e9448110
parentacfb7121275dee018b221ef34b7f5fa7026675b5
backlight: Revamp error handling code to not leak the directory

To neatly free the directory pointer allocated by opendir(), adjust the error
handling paths to go through to the err label.
src/libbacklight.c