Commit 0500ec0a by Dominic Hamon

Merge pull request #174 from alycm/fix-leak

Close a memory leak in configuration code
parents 27f8a623 a5741100
......@@ -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;
}
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