diff --git a/src/file.cpp b/src/file.cpp index 53c30e32a..20882d7fb 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -425,6 +425,7 @@ namespace libtorrent return -1; } } + CloseHandle(ol.hEvent); return ret; #else size_type ret = lseek(m_fd, file_offset, SEEK_SET);