From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/allocator-api2/src/stable/boxed.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'vendor/allocator-api2/src/stable') diff --git a/vendor/allocator-api2/src/stable/boxed.rs b/vendor/allocator-api2/src/stable/boxed.rs index 3c342c54a..7a0c03318 100644 --- a/vendor/allocator-api2/src/stable/boxed.rs +++ b/vendor/allocator-api2/src/stable/boxed.rs @@ -1183,6 +1183,7 @@ impl Drop for Box { fn drop(&mut self) { let layout = Layout::for_value::(&**self); unsafe { + ptr::drop_in_place(self.0.as_mut()); self.1.deallocate(self.0.cast(), layout); } } -- cgit v1.2.3