]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: fix leaking update strategy
authorPatrick Steinhardt <ps@pks.im>
Thu, 26 Sep 2024 11:46:08 +0000 (13:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Sep 2024 15:25:34 +0000 (08:25 -0700)
commit2e492f2047748cf70350d503214ef89f1110ee82
tree88f9c78428ceea8acde6798128f3b52ac96f0759
parent3aef7a05adb2868118181eb5605fffa65a9af2c8
submodule: fix leaking update strategy

We're not freeing the submodule update strategy command. Provide a
helper function that does this for us and call it in
`update_data_release()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
submodule-config.c
submodule.c
submodule.h
t/t7406-submodule-update.sh