grep: Fix two memory leaks
commitbfac23d9534ea88ed2b033cf0cb17b22ec0e4cdb
authorDan McGee <dpmcgee@gmail.com>
Sat, 30 Jan 2010 15:42:58 +0000 (30 09:42 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sat, 30 Jan 2010 17:11:00 +0000 (30 09:11 -0800)
tree3143071c046a80676110fad40cdcfaadc3e36706
parent31d87385c4fbd7fc4ab295f2848531b5c1021828
grep: Fix two memory leaks

We duplicate the grep_opt structure when using grep threads, but didn't
later free either the patterns attached to this new structure or the
structure itself.

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c