Boost C++ Libraries: Ticket #13575: boost asio memory leak https://svn.boost.org/trac10/ticket/13575 <p> This code on heavily loaded server leads to memory leak inside kqueue_reactor::allocate_descriptor_state(): </p> <pre class="wiki">boost::asio::ip::udp::socket s(io_service); s.open(boost::asio::ip::udp::v4()); s.bind(boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 0)); </pre><p> While this code doesn't lead to this leak: </p> <pre class="wiki">boost::asio::ip::udp::socket s(io_service, boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 0)); </pre><p> Tested on MacOS. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13575 Trac 1.4.3 boris@… Thu, 31 May 2018 08:44:59 GMT <link>https://svn.boost.org/trac10/ticket/13575#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13575#comment:1</guid> <description> <p> io_service is created with concurrency 1, if that matters: </p> <p> boost::asio::io_service io_service(1); </p> </description> <category>Ticket</category> </item> </channel> </rss>