Fix space leak in S3 Multipart Upload feature

The problem is the same with #142.