$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.