X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-grep.c;h=0ef849cb84650705ffc840aed8a3fcedbeb48f9a;hb=bfac23d9534ea88ed2b033cf0cb17b22ec0e4cdb;hp=9bd467c9b90d1c58a59e27fbc6673cb68d855c72;hpb=31d87385c4fbd7fc4ab295f2848531b5c1021828;p=git.git diff --git a/builtin-grep.c b/builtin-grep.c index 9bd467c9b..0ef849cb8 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -205,6 +205,8 @@ static void *run(void *arg) work_done(w); } + free_grep_patterns(arg); + free(arg); return (void*) (intptr_t) hit; }