We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OwnedFd
libc::close()
1 parent 452a038 commit 09112cdCopy full SHA for 09112cd
gio/src/socket.rs
@@ -29,7 +29,7 @@ impl Socket {
29
if error.is_null() {
30
Ok(from_glib_full(ret))
31
} else {
32
- libc::close(fd);
+ let _ = OwnedFd::from_raw_fd(fd);
33
Err(from_glib_full(error))
34
}
35
0 commit comments