summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-05 12:08:59 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-05 08:49:11 -0700
commitcdbb7208c80661754b3f1a73aef086c08f88dcff (patch)
tree941ad6539e02a975500e7cc3cabb1fc142d9e32f /commit.c
parent1e8cb17ac5c0e7871e15dd40bacd617f25a54763 (diff)
remote: fix leaking tracking refs
When computing the remote tracking ref we cause two memory leaks: - We leak when `remote_tracking()` fails. - We leak when the call to `remote_tracking()` succeeds and sets `ref->tracking_ref()`. Fix both of these leaks. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions