Unify code paths of threaded greps
commitf46fcc176a246cde86587b42752c4098ebb1c109
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 8 Apr 2010 18:30:37 +0000 (8 20:30 +0200)
tree2e7fc97bf9f8f95441411e17de4d6c4a1f994637
parentc5fc0e52b417af5499621801c4880c060d763d6a
Unify code paths of threaded greps

There were two awfully similar code paths ending the threaded grep. It
is better to avoid duplicated code, though.

This change might very well prevent a race, where the grep patterns were
free()d before waiting that all threads finished.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
builtin/grep.c