fixed memory leak on disk io failures

This commit is contained in:
Arvid Norberg 2008-03-24 02:33:42 +00:00
parent 211ae62d33
commit e1eadab1b4
1 changed files with 1 additions and 0 deletions

View File

@ -2508,6 +2508,7 @@ namespace libtorrent
if (ret != r.length || m_torrent.expired())
{
if (j.buffer) m_ses.free_disk_buffer(j.buffer);
boost::shared_ptr<torrent> t = m_torrent.lock();
if (!t)
{