-
Notifications
You must be signed in to change notification settings - Fork 459
Open
Description
asio/include/boost/asio/awaitable.hpp
Lines 81 to 86 in 44722ea
| awaitable& operator=(awaitable&& other) noexcept | |
| { | |
| if (this != &other) | |
| frame_ = std::exchange(other.frame_, nullptr); | |
| return *this; | |
| } |
In the implementation of awaitable::operator=, if there is an awaitable_frame, it is not destroyed before a new one is assigned. Therefore, resource leak is possible. Mini example on godbolt
Metadata
Metadata
Assignees
Labels
No labels