summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-23 05:43:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-23 05:43:11 (GMT)
commite0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc (patch)
treefdcd0653f52fd14b9ec433a66dafcf8765bfd500 /builtin
parentd45d771978c3d5bead096934cad16ddfb9fced37 (diff)
parent10da030ab757c38a01507bf18e2484698000b791 (diff)
downloadgit-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.zip
git-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.gz
git-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.bz2
Merge branch 'cb/pcre2-chartables-leakfix'
Leakfix. * cb/pcre2-chartables-leakfix: grep: avoid leak of chartables in PCRE2 grep: make PCRE2 aware of custom allocator grep: make PCRE1 aware of custom allocator
Diffstat (limited to 'builtin')
-rw-r--r--builtin/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 69ac053..50ce8d9 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -1147,5 +1147,6 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
run_pager(&opt, prefix);
clear_pathspec(&pathspec);
free_grep_patterns(&opt);
+ grep_destroy();
return !hit;
}