Closed lizhuohua closed 2 years ago
Box::into_raw leaks heap memory, which should be converted back into a Box with the Box::from_raw function, so that the Box destructor can perform the cleanup.
Box::into_raw
Box
Thanks for the fix!
Box::into_raw
leaks heap memory, which should be converted back into aBox
with the Box::from_raw function, so that theBox
destructor can perform the cleanup.