Skip to content

Commit 94c7219

Browse files
committed
fix memory leak in ByteBuffer implementation
1 parent a2a4616 commit 94c7219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/memory/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl ByteBuffer {
205205

206206
impl Drop for ByteBuffer {
207207
fn drop(&mut self) {
208-
self.get_vec();
208+
self.get_vec().map(ManuallyDrop::into_inner);
209209
}
210210
}
211211

0 commit comments

Comments
 (0)