Attempt to fix regression for pcre_free_study().

This commit is contained in:
orbitcowboy 2018-09-26 08:07:26 +02:00
parent 33b74a04ab
commit e25bf187ad
1 changed files with 2 additions and 1 deletions

View File

@ -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
}