diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-11-05 07:16:52 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-11-04 22:37:52 -0800 |
| commit | 43fedde3dfcd1e0ccd638f1a8c70c39219680fb1 (patch) | |
| tree | 8a1c647069ad2de3d6a1cc7f5e9aec21839230fa /diff-lib.c | |
| parent | grep: fix leak in `grep_splice_or()` (diff) | |
| download | git-43fedde3dfcd1e0ccd638f1a8c70c39219680fb1.tar.gz git-43fedde3dfcd1e0ccd638f1a8c70c39219680fb1.zip | |
builtin/grep: fix leak with `--max-count=0`
When executing with `--max-count=0` we'll return early from git-grep(1)
without performing any cleanup, which causes memory leaks. Plug these.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-lib.c')
0 files changed, 0 insertions, 0 deletions
