Merge pull request #235 from andrewgaul/complete-mpu-leak

Plug leak during complete multipart upload
This commit is contained in:
Takeshi Nakatani 2015-08-20 00:40:00 +09:00
commit 026a9f2bdc

View File

@ -2821,6 +2821,7 @@ int S3fsCurl::CompleteMultipartPostRequest(const char* tpath, string& upload_id,
for(cnt = 0; cnt < sRequest_len; cnt++){
sprintf(&hexsRequest[cnt * 2], "%02x", sRequest[cnt]);
}
free(sRequest);
payload_hash.assign(hexsRequest, &hexsRequest[sRequest_len * 2]);
requestHeaders = curl_slist_sort_insert(requestHeaders, "Date", get_date_rfc850().c_str());