summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-10-23 14:43:11 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-23 14:43:11 +0900
commite0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc (patch)
treefdcd0653f52fd14b9ec433a66dafcf8765bfd500 /builtin/grep.c
parentMerge branch 'bc/smart-http-atomic-push' (diff)
parentgrep: avoid leak of chartables in PCRE2 (diff)
downloadtgif-e0ff2d4c7ec338e30ea5e0340cda7f5fe8a187dc.tar.xz
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/grep.c')
-rw-r--r--builtin/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 69ac053acc..50ce8d9461 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;
}