diff --git a/ChangeLog b/ChangeLog index e5d8d35..26cbc10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -55,6 +55,8 @@ limit exceeded" errors. 13. Add "kibibytes" to the heap limit output from pcre2test -C to make the units clear. +14. Add a call to pcre2_jit_free_unused_memory() in pcre2grep, for tidiness. + Version 10.32 10-September-2018 ------------------------------- diff --git a/src/pcre2grep.c b/src/pcre2grep.c index d5f34c8..1027047 100644 --- a/src/pcre2grep.c +++ b/src/pcre2grep.c @@ -4302,6 +4302,7 @@ if (show_total_count && counts_printed != 1 && filenames != FN_NOMATCH_ONLY) EXIT: #ifdef SUPPORT_PCRE2GREP_JIT +pcre2_jit_free_unused_memory(NULL); if (jit_stack != NULL) pcre2_jit_stack_free(jit_stack); #endif