sled icon indicating copy to clipboard operation
sled copied to clipboard

If the assertion goes into unwinding, the value will be leaked inside a panic.

Open labyrinth-ssr opened this issue 2 years ago • 0 comments

https://github.com/spacejam/sled/blob/69294e59c718289ab3cb6bd03ac3b9e1e072a1e7/src/lazy.rs#L88-L92

If the assert fails, the object value_ptr pointing to (which is on the heap) will leak.

labyrinth-ssr avatar Aug 02 '23 10:08 labyrinth-ssr