mirror of
https://github.com/rclone/rclone.git
synced 2026-10-10 23:11:42 -04:00
When an upload failed during the transfer, the partial file was
removed but its handle was never closed. The server kept the deleted
file open, so its space stayed allocated until the pooled connection
was closed, which in rcd, mount or serve could be until rclone exited.
This closes the handle before removing the partial file.
(cherry picked from commit d545615c16)