diff options
author | 2016-05-12 08:42:02 +0200 | |
---|---|---|
committer | 2016-05-12 08:42:02 +0200 | |
commit | 2fe208917976a66a315c83672cc2242ffb2ac88a (patch) | |
tree | 461cb81c293cd0a429db12a2ffe055a4b9400861 /3rdparty/benchmark/cmake/posix_regex.cpp | |
parent | f7f6569add35e5588fcdf686af4b4d9ad5396b11 (diff) |
Update BGFX, BX, Benchmark and RapidJSON (nw)
Diffstat (limited to '3rdparty/benchmark/cmake/posix_regex.cpp')
-rw-r--r-- | 3rdparty/benchmark/cmake/posix_regex.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/3rdparty/benchmark/cmake/posix_regex.cpp b/3rdparty/benchmark/cmake/posix_regex.cpp index a31af80481a..466dc62560a 100644 --- a/3rdparty/benchmark/cmake/posix_regex.cpp +++ b/3rdparty/benchmark/cmake/posix_regex.cpp @@ -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; } |