]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/sparse-leakfix'
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2024 20:37:17 +0000 (13:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Jun 2024 20:37:17 +0000 (13:37 -0700)
commit51ea70c18ad4646fdcccdce72a1a457f7ada6297
tree08b6ff5d76c2459b7bb519190709dad3e082c9d1
parentc2f79440acc0d24e5a8a61648cf92055cf4ca5c8
parent6d107751b299e2d0439909d01439b245dd820c5d
Merge branch 'jk/sparse-leakfix'

Many memory leaks in the sparse-checkout code paths have been
plugged.

* jk/sparse-leakfix:
  sparse-checkout: free duplicate hashmap entries
  sparse-checkout: free string list after displaying
  sparse-checkout: free pattern list in sparse_checkout_list()
  sparse-checkout: free sparse_filename after use
  sparse-checkout: refactor temporary sparse_checkout_patterns
  sparse-checkout: always free "line" strbuf after reading input
  sparse-checkout: reuse --stdin buffer when reading patterns
  dir.c: always copy input to add_pattern()
  dir.c: free removed sparse-pattern hashmap entries
  sparse-checkout: clear patterns when init() sees existing sparse file
  dir.c: free strings in sparse cone pattern hashmaps
  sparse-checkout: pass string literals directly to add_pattern()
  sparse-checkout: free string list in write_cone_to_file()
dir.c