From d405535a3f67b36c2826c1392f8cfcd553f21118 Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Sun, 13 Mar 2016 11:45:45 -0700 Subject: [PATCH] try to free the piece after kicking the hasher and flushing --- src/disk_io_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index a0d1c91d6..edbea3b94 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -939,6 +939,8 @@ namespace libtorrent kick_hasher(pe, l); num -= try_flush_hashed(pe, 1, completed_jobs, l); --pe->piece_refcount; + + m_disk_cache.maybe_free_piece(pe); } // when the write cache is under high pressure, it is likely