[Pcre-svn] [1037] code/trunk: Add pcre2_jit_free_unused_memo…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1037] code/trunk: Add pcre2_jit_free_unused_memory() to pcre2grep, for tidiness.
Revision: 1037
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1037
Author:   ph10
Date:     2018-10-28 17:27:48 +0000 (Sun, 28 Oct 2018)
Log Message:
-----------
Add pcre2_jit_free_unused_memory() to pcre2grep, for tidiness.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2grep.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2018-10-28 17:24:24 UTC (rev 1036)
+++ code/trunk/ChangeLog    2018-10-28 17:27:48 UTC (rev 1037)
@@ -55,7 +55,9 @@
 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
-------------------------------


Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c    2018-10-28 17:24:24 UTC (rev 1036)
+++ code/trunk/src/pcre2grep.c    2018-10-28 17:27:48 UTC (rev 1037)
@@ -4302,6 +4302,7 @@


EXIT:
#ifdef SUPPORT_PCRE2GREP_JIT
+pcre2_jit_free_unused_memory(NULL);
if (jit_stack != NULL) pcre2_jit_stack_free(jit_stack);
#endif