Plug memory leaks

Found via clang-tidy.
This commit is contained in:
Andrew Gaul 2019-01-17 18:21:20 -08:00
parent 25b49e1a2e
commit ab2f36f202

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