fix svace error 94/62694/1 accepted/tizen/common/20160317.161837 accepted/tizen/ivi/20160318.113700 accepted/tizen/mobile/20160318.113446 accepted/tizen/tv/20160318.113543 accepted/tizen/wearable/20160318.113520 submit/tizen/20160317.115536
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 17 Mar 2016 11:30:25 +0000 (20:30 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 17 Mar 2016 11:30:32 +0000 (20:30 +0900)
Change-Id: I8454615682b1ac7784077d9060a6334703a2c7d9
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/tbm_bufmgr_exynos.c

index f4414f0..ad5bfda 100644 (file)
@@ -2059,6 +2059,7 @@ init_tbm_bufmgr_priv(tbm_bufmgr bufmgr, int fd)
                if (!bufmgr_exynos->device_name)
                {
                        TBM_EXYNOS_LOG ("[libtbm-exynos:%d] error: Fail to get device name!\n", getpid());
+                       close(bufmgr_exynos->fd);
                        free (bufmgr_exynos);
                        return 0;
                }