Open mpoeter opened 6 months ago
The move/assignment operator of asio::ssl::detail::engine looks as follows: https://github.com/chriskohlhoff/asio/blob/12e0ce9e0500bf0f247dbd1ae894272656456079/asio/include/asio/ssl/detail/impl/engine.ipp#L99-L109
asio::ssl::detail::engine
We take over ssl_ and ext_bio_ from other and reset them in other, but we simply overwrite our own members without releasing anything. In the destructor we can see what is missing here https://github.com/chriskohlhoff/asio/blob/12e0ce9e0500bf0f247dbd1ae894272656456079/asio/include/asio/ssl/detail/impl/engine.ipp#L84-L97
ssl_
ext_bio_
other
The move/assignment operator of
asio::ssl::detail::engine
looks as follows: https://github.com/chriskohlhoff/asio/blob/12e0ce9e0500bf0f247dbd1ae894272656456079/asio/include/asio/ssl/detail/impl/engine.ipp#L99-L109We take over
ssl_
andext_bio_
fromother
and reset them inother
, but we simply overwrite our own members without releasing anything. In the destructor we can see what is missing here https://github.com/chriskohlhoff/asio/blob/12e0ce9e0500bf0f247dbd1ae894272656456079/asio/include/asio/ssl/detail/impl/engine.ipp#L84-L97