Removed memory leak from s3 library #59