relf / cobyla

COBYLA optimizer for Rust
MIT License
11 stars 1 forks source link

Fix memory leak #1

Closed lizhuohua closed 2 years ago

lizhuohua commented 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.

relf commented 2 years ago

Thanks for the fix!