|
Boost Users : |
Subject: Re: [Boost-users] boost::bind memory leak
From: bit bit (g_rambot_at_[hidden])
Date: 2010-11-13 02:43:26
(which doesn't allocate memory).
>>>>>>>>>>>>>>
That's not true.
Check this out..
shared_count.hpp
template<class P, class D>
shared_count( P p, D d ): pi_(0)
{
try
{
pi_ = new sp_counted_impl_pd<P, D>(p, d);
}
catch(...)
{
d(p); // delete p
throw;
}
}
That's what causes the leak.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net