From 3e882729ed98d52250a2b115648607d092cd03ec Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 6 Sep 2022 16:52:11 +0900 Subject: [PATCH] tbm_module: Fix leak of fd Change-Id: I8e2fc72c07bba9035e8cf9f9b6e07d2ac9ff1fcb --- src/tbm_module.c | 1 + 1 file changed, 1 insertion(+) 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. -- 2.34.1