From: Changyeon Lee Date: Tue, 6 Sep 2022 07:52:11 +0000 (+0900) Subject: tbm_module: Fix leak of fd X-Git-Tag: accepted/tizen/unified/20220908.013359~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e882729ed98d52250a2b115648607d092cd03ec;p=platform%2Fcore%2Fuifw%2Flibtbm.git tbm_module: Fix leak of fd Change-Id: I8e2fc72c07bba9035e8cf9f9b6e07d2ac9ff1fcb --- diff --git a/src/tbm_module.c b/src/tbm_module.c index 6f98691..b03d01a 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -516,6 +516,7 @@ tbm_module_bind_native_display(tbm_module *module, void *native_display) if (tbm_drm_helper_is_render_node(fd)) { TBM_INFO("tbm_module has render node."); + close(fd); error = TBM_ERROR_NONE; } else { // make the wayland server socket for sending the authenticated drm_fd to wayland clients.