summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channel.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channel.rs b/src/channel.rs
index cb4cf0f..d7d9b20 100644
--- a/src/channel.rs
+++ b/src/channel.rs
@@ -370,7 +370,9 @@ impl<'sess> Read for Channel<'sess> {
impl<'sess> Drop for Channel<'sess> {
fn drop(&mut self) {
- unsafe { assert_eq!(raw::libssh2_channel_free(self.raw), 0) }
+ unsafe {
+ let _ = raw::libssh2_channel_free(self.raw);
+ }
}
}