Fix mismatched new[]/free

Found via Valgrind.
This commit is contained in:
Andrew Gaul 2019-07-02 12:33:01 -07:00
parent d267212289
commit 944d21cabb

View File

@ -2447,10 +2447,10 @@ string S3fsCurl::CalcSignatureV2(const string& method, const string& strMD5, con
char* base64;
if(NULL == (base64 = s3fs_base64(md, md_len))){
free(md);
delete[] md;
return string(""); // ENOMEM
}
free(md);
delete[] md;
Signature = base64;
delete[] base64;