fixed memory leak by freeing Chunk::data in destructor

This path fixes a memory leak occurring during transfers to s3.