From e515781907e4d6c99a7d71114f39f1e0a1ffa995 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 17 Jun 2026 20:06:06 +0200 Subject: lib: fix file handle leak --- ttwhy/scoped_attributes.cppm | 1 + 1 file changed, 1 insertion(+) diff --git a/ttwhy/scoped_attributes.cppm b/ttwhy/scoped_attributes.cppm index b49dd18..243d4ac 100644 --- a/ttwhy/scoped_attributes.cppm +++ b/ttwhy/scoped_attributes.cppm @@ -72,6 +72,7 @@ namespace ttwhy if (m_file_descriptor > 0) { tcsetattr(m_file_descriptor, TCSANOW, &m_attributes); + close(m_file_descriptor); } } -- cgit v1.2.3