From 66cd7df5146d92c547db6c4c59ac64e701e5acf3 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Sun, 28 Oct 2018 17:27:48 +0000 Subject: [PATCH] Add pcre2_jit_free_unused_memory() to pcre2grep, for tidiness. --- ChangeLog | 2 ++ src/pcre2grep.c | 1 + 2 files changed, 3 insertions(+) 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