Merge pull request #901 from gaul/clang-tidy/leaks

Plug memory leaks
This commit is contained in:
Takeshi Nakatani 2019-01-20 12:41:08 +09:00 committed by GitHub
commit 6ac56e722d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));