aboutsummaryrefslogtreecommitdiff
path: root/ttwhy
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-06-17 20:06:06 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-06-17 20:06:06 +0200
commite515781907e4d6c99a7d71114f39f1e0a1ffa995 (patch)
tree7f7a8fe17fff52a23e835faade6ced69e0cdd747 /ttwhy
parente38520f3493a37d500adbca2704e1837bfdc488f (diff)
downloadttwhy-e515781907e4d6c99a7d71114f39f1e0a1ffa995.tar.xz
ttwhy-e515781907e4d6c99a7d71114f39f1e0a1ffa995.zip
lib: fix file handle leak
Diffstat (limited to 'ttwhy')
-rw-r--r--ttwhy/scoped_attributes.cppm1
1 files changed, 1 insertions, 0 deletions
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);
}
}