Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/connect-symref-info-leak-fix' into maint
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 65070c52fc2da84bc48804817f1e714f755c9ab5..3ffb5b4e8176bbcd1ecf2e4ae2dc84aee968cd22 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-1299,6
+1299,7
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
hit |= wait_all();
if (hit && show_in_pager)
run_pager(&opt, prefix);
+ clear_pathspec(&pathspec);
free_grep_patterns(&opt);
return !hit;
}