aboutsummaryrefslogtreecommitdiff
path: root/src/bytes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes.rs')
-rw-r--r--src/bytes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes.rs b/src/bytes.rs
index 948b10e..f8d3ce3 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -1190,7 +1190,7 @@ unsafe fn release_shared(ptr: *mut Shared) {
(*ptr).ref_cnt.load(Ordering::Acquire);
// Drop the data
- Box::from_raw(ptr);
+ drop(Box::from_raw(ptr));
}
// Ideally we would always use this version of `ptr_map` since it is strict