Fix leakage of Gem handle on tbm_bcm_bo_import_fd() 10/122110/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Thu, 30 Mar 2017 07:45:21 +0000 (16:45 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Thu, 30 Mar 2017 07:45:21 +0000 (16:45 +0900)
commitadeb4650043322416af6a07c71c47c55f23bf7b0
tree7365582f92283b7765da4a8577f121236b1ca53e
parent9deebfddcf3a1cc463116a328d3f499111dcd4a8
Fix leakage of Gem handle  on tbm_bcm_bo_import_fd()

tbm_bcm_bo_import_fd() calls DRM_IOCTL_GEM_OPEN for getting of buffer size.
but previous implementation does not call DRM_IOCTL_GEM_CLOSE for this handle.
it causes leakeage of gem memory. this patch fixes it.

Change-Id: I0bcb1bd5d5373116088b45aca8a49e2efc357e30
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
src/tbm_bufmgr_vc4.c