mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-12 00:00:14 +02:00
Fix amortized asymptotics of BytesMut (#555)
Signed-off-by: Jiahao XU <[email protected]> Co-authored-by: Frank Steffahn <[email protected]>
This commit is contained in:
co-authored by
Frank Steffahn
parent
cd188cbd67
commit
7553a67be2
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user