diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 20:06:06 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 20:06:06 +0200 |
| commit | e515781907e4d6c99a7d71114f39f1e0a1ffa995 (patch) | |
| tree | 7f7a8fe17fff52a23e835faade6ced69e0cdd747 | |
| parent | e38520f3493a37d500adbca2704e1837bfdc488f (diff) | |
| download | ttwhy-e515781907e4d6c99a7d71114f39f1e0a1ffa995.tar.xz ttwhy-e515781907e4d6c99a7d71114f39f1e0a1ffa995.zip | |
lib: fix file handle leak
| -rw-r--r-- | ttwhy/scoped_attributes.cppm | 1 |
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); } } |
