Add pcre2_jit_free_unused_memory() to pcre2grep, for tidiness.

This commit is contained in:
Philip.Hazel 2018-10-28 17:27:48 +00:00
parent 9a9fdf3037
commit 66cd7df514
2 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,8 @@ limit exceeded" errors.
13. Add "kibibytes" to the heap limit output from pcre2test -C to make the 13. Add "kibibytes" to the heap limit output from pcre2test -C to make the
units clear. units clear.
14. Add a call to pcre2_jit_free_unused_memory() in pcre2grep, for tidiness.
Version 10.32 10-September-2018 Version 10.32 10-September-2018
------------------------------- -------------------------------

View File

@ -4302,6 +4302,7 @@ if (show_total_count && counts_printed != 1 && filenames != FN_NOMATCH_ONLY)
EXIT: EXIT:
#ifdef SUPPORT_PCRE2GREP_JIT #ifdef SUPPORT_PCRE2GREP_JIT
pcre2_jit_free_unused_memory(NULL);
if (jit_stack != NULL) pcre2_jit_stack_free(jit_stack); if (jit_stack != NULL) pcre2_jit_stack_free(jit_stack);
#endif #endif