mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-26 17:11:56 +00:00
Close a memory leak in configuration code
This was causing configuration failures on address sanitizer builds.
This commit is contained in:
parent
cd525ae85d
commit
a574110048
@ -7,6 +7,8 @@ int main() {
|
||||
if (ec != 0) {
|
||||
return ec;
|
||||
}
|
||||
return regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
||||
int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
|
||||
regfree(&re);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user