mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Fix invalid call to close handle in AutoHandle.
This commit is contained in:
@@ -61,6 +61,7 @@ AutoHandle::AutoHandle( int fd ) : mHandle( fd ) {}
|
||||
void AutoHandle::release() const {
|
||||
if ( mHandle != -1 ) {
|
||||
close( mHandle );
|
||||
mHandle = -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user