fix handle leak error 77/66277/2 accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20160419.143139 accepted/tizen/ivi/20160418.235901 accepted/tizen/mobile/20160418.235912 accepted/tizen/tv/20160418.235858 accepted/tizen/wearable/20160418.235849 submit/tizen/20160418.122414
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 18 Apr 2016 07:02:29 +0000 (16:02 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 18 Apr 2016 12:14:17 +0000 (21:14 +0900)
Change-Id: I88f95b3ae1fd4cc1df48acbe01b848ff7e270491
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tbm_bufmgr_dumb.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index bf0bbae..7c7e872
@@ -295,6 +295,7 @@ _tbm_dumb_open_drm()
     ret = fstat(fd, &s);
     if (ret) {
         TBM_DUMB_LOG("fstat() failed %s.\n");
+        close(fd);
         udev_device_unref(drm_device);
         udev_unref(udev);
         return -1;