Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2023-11-06 13:45:53 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-07 02:51:40 +0300
commit40e9136ff641682e2ef739a3dbce03047ed5426f (patch)
tree32194f6d4238e1b9605b0f37a6d52e236d230d72 /shallow.c
parent61a22ddaf0626111193a17ac12f366bd6d167dff (diff)
test-bloom: stop setting up Git directory twice
We're setting up the Git directory twice in the `test-tool bloom` helper, once at the beginning of `cmd_bloom()` and once in the local subcommand implementation `get_bloom_filter_for_commit()`. This can lead to memory leaks as we'll overwrite variables of `the_repository` with newly allocated data structures. On top of that it's simply unnecessary. Fix this by only setting up the Git directory once. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'shallow.c')
0 files changed, 0 insertions, 0 deletions