summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcresearch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcresearch.c b/src/pcresearch.c
index dea39f03..ef8215fc 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -202,6 +202,7 @@ Pcompile (char *pattern, idx_t size, reg_syntax_t ignored, bool exact)
}
free (re_storage);
+ pcre2_compile_context_free (ccontext);
pc->mcontext = NULL;
pc->data = pcre2_match_data_create_from_pattern (pc->cre, gcontext);