mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Fix mismatched new[]/free
Found via Valgrind.
This commit is contained in:
parent
d267212289
commit
944d21cabb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user