Open orobio opened 5 days ago
This appears to fix the memleak we saw with cancelOnGracefulShutdown()
in the swift-service-lifecycle
library. I opened an issue* for this here detailing the behavior of this leak:
https://github.com/swift-server/swift-service-lifecycle/issues/188
The platform lock is never deallocated, which results in a leak. Since the platform lock is owned by Lock, I thought it would be fine to make deallocation part of
deinitialize()
and not have a separatedeallocate()
function. Especially since initialization of the lock is also mixed intoallocate()
already.