mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-31 17:48:25 +00:00
Plug memory leaks
Found via clang-tidy.
This commit is contained in:
parent
25b49e1a2e
commit
ab2f36f202
@ -123,6 +123,7 @@ bool AdditionalHeader::Load(const char* file)
|
||||
// regex
|
||||
if(key.size() <= strlen(ADD_HEAD_REGEX)){
|
||||
S3FS_PRN_ERR("file format error: %s key(suffix) does not have key string.", key.c_str());
|
||||
delete paddhead;
|
||||
continue;
|
||||
}
|
||||
key = key.substr(strlen(ADD_HEAD_REGEX));
|
||||
|
Loading…
x
Reference in New Issue
Block a user