diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-04-13 22:01:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-13 23:56:09 -0700 |
commit | f41fb662f57abccf24d036bb0fd4294eb72261af (patch) | |
tree | 824063938dfbca518cefcd13e8e1ea21e0b48b57 /revision.c | |
parent | e75d2f7f73420884c50613a8242812b55ad2a8fa (diff) | |
download | git-f41fb662f57abccf24d036bb0fd4294eb72261af.tar.gz |
revisions API: have release_revisions() release "grep_filter"
Extend the the release_revisions() function so that it frees the
"grep_filter" in the "struct rev_info".This allows us to mark a test
as passing under "TEST_PASSES_SANITIZE_LEAK=true".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.c b/revision.c index a9d6d3a8dc..1db58c3e4d 100644 --- a/revision.c +++ b/revision.c @@ -2950,6 +2950,7 @@ void release_revisions(struct rev_info *revs) release_revisions_cmdline(&revs->cmdline); list_objects_filter_release(&revs->filter); release_revisions_mailmap(revs->mailmap); + free_grep_patterns(&revs->grep_filter); } static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child) |