llvm-project
101f88aa - [libc] Fix move destruction double-freeing ports after move to RAII

Commit
74 days ago
[libc] Fix move destruction double-freeing ports after move to RAII Summary: Recently I changed the interface to use RAII to close the ports. This exposed a problem where the default move constructor was invoked in the optional wrapping, this caused the destructor to fire twice on the server, obviously causing havok. This PR changes the move destructor to be deleted so this never happens again. Now everything is constructed once and only references are allowed. The optional class had to be fixed to properly set in_use so we run the destructor properly as well.
Author
Committer
Parents
Loading