Merge branch 'ab/ref-filter-leakfix'
commitc3673a8eb22a2369ddfd8b1e29e5fd800e8ca833
authorJunio C Hamano <gitster@pobox.com>
Fri, 29 Oct 2021 22:43:12 +0000 (29 15:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Oct 2021 22:43:12 +0000 (29 15:43 -0700)
tree45f7cca55ebbeaa31d7e0a7151248a7eee5dea9a
parent735907bde1de71e2fc90712bdb3bf30fc417a8ac
parentd72d4f92e2e0fed38c6173c31e86b1b8881600e8
Merge branch 'ab/ref-filter-leakfix'

"git for-each-ref" family of commands were leaking the ref_sorting
instances that hold sorting keys specified by the user; this has
been corrected.

* ab/ref-filter-leakfix:
  branch: use ref_sorting_release()
  ref-filter API user: add and use a ref_sorting_release()
  tag: use a "goto cleanup" pattern, leak less memory