mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 16:40:59 +00:00
55d338b66f
The C interface (posix interface?) for regexes has no "initialize" function, only a free function. The comment in regcomp in LibRegex/C/Regex.cpp notes that calling regcomp without a regfree is an error, and will leak memory. Every single time regcomp is called on a regex_t*, it will allocate new memory. Make sure that all the regcomp calls are paired with a regfree in the tests program |
||
---|---|---|
.. | ||
Benchmark.cpp | ||
CMakeLists.txt | ||
Regex.cpp | ||
RegexLibC.cpp |