diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-09-05 12:08:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-09-05 08:49:11 -0700 |
commit | cdbb7208c80661754b3f1a73aef086c08f88dcff (patch) | |
tree | 941ad6539e02a975500e7cc3cabb1fc142d9e32f /commit.c | |
parent | 1e8cb17ac5c0e7871e15dd40bacd617f25a54763 (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