prevent memory leak in S3 multipart upload (fixes #142, #143)