From e25bf187ada70b4104fa9fac593af84e193cba13 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 26 Sep 2018 08:07:26 +0200 Subject: [PATCH] Attempt to fix regression for pcre_free_study(). --- lib/cppcheck.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 5a29511e2..9bf215177 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -849,11 +849,12 @@ void CppCheck::executeRules(const std::string &tokenlist, const Tokenizer &token } pcre_free(re); - +#ifdef PCRE_CONFIG_JIT // Free up the EXTRA PCRE value (may be NULL at this point) if (pcreExtra) { pcre_free_study(pcreExtra); } +#endif } #endif }