]> git.ipfire.org Git - thirdparty/git.git/commit
revisions API users: use release_revisions() in http-push.c
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 13 Apr 2022 20:01:41 +0000 (22:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Apr 2022 06:56:09 +0000 (23:56 -0700)
commitb78ce337def2db3a6fceee157f49202e5d1ce46a
tree9851e1b86c6e54109340b2c823778a5b39a1b304
parent0139c58ab951e8620d6066eb687d0a96e490436a
revisions API users: use release_revisions() in http-push.c

In the case of cmd_main() in http-push.c we need to move the
deceleration of the "struct rev-list" into the loop over the
"remote_refs" when adding a release_revisions().

We'd previously set up the "revs" for each remote, but would
potentially leak memory on each one.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c