Skip to content

Commit f41fb66

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e75d2f7 commit f41fb66

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

revision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2950,6 +2950,7 @@ void release_revisions(struct rev_info *revs)
29502950
release_revisions_cmdline(&revs->cmdline);
29512951
list_objects_filter_release(&revs->filter);
29522952
release_revisions_mailmap(revs->mailmap);
2953+
free_grep_patterns(&revs->grep_filter);
29532954
}
29542955

29552956
static void add_child(struct rev_info *revs, struct commit *parent, struct commit *child)

t/t9151-svn-mergeinfo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
test_description='git-svn svn mergeinfo properties'
77

8-
TEST_FAILS_SANITIZE_LEAK=true
98
. ./lib-git-svn.sh
109

1110
test_expect_success 'load svn dump' "

0 commit comments

Comments
 (0)