From 2fe208917976a66a315c83672cc2242ffb2ac88a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 12 May 2016 08:42:02 +0200 Subject: Update BGFX, BX, Benchmark and RapidJSON (nw) --- 3rdparty/benchmark/cmake/posix_regex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '3rdparty/benchmark/cmake/posix_regex.cpp') 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; } -- cgit v1.2.3-70-g09d2