From 8ff5245e77572f65cad331eb18dbaedb22301993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Thu, 17 Oct 2024 20:39:57 -0300 Subject: [PATCH] Fix invalid call to close handle in AutoHandle. --- src/modules/eterm/src/eterm/system/autohandle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/eterm/src/eterm/system/autohandle.cpp b/src/modules/eterm/src/eterm/system/autohandle.cpp index 0ef1a9bc3..1a009bfe8 100644 --- a/src/modules/eterm/src/eterm/system/autohandle.cpp +++ b/src/modules/eterm/src/eterm/system/autohandle.cpp @@ -61,6 +61,7 @@ AutoHandle::AutoHandle( int fd ) : mHandle( fd ) {} void AutoHandle::release() const { if ( mHandle != -1 ) { close( mHandle ); + mHandle = -1; } } #endif