Commit a5741100 by Alastair Murray

Close a memory leak in configuration code

This was causing configuration failures on address sanitizer builds.
parent cd525ae8
...@@ -7,6 +7,8 @@ int main() { ...@@ -7,6 +7,8 @@ int main() {
if (ec != 0) { if (ec != 0) {
return ec; 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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment