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 }