mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 09:09:33 +00:00
remote: only keep a weak pointer in update_tips
The reference is only needed inside the function. We mistakenly increased the reference counter causing the ODB not to get freed and leaking descriptors.
This commit is contained in:
parent
22935b06d1
commit
acd1700630
@ -467,7 +467,7 @@ int git_remote_update_tips(git_remote *remote)
|
||||
if (refs->length == 0)
|
||||
return 0;
|
||||
|
||||
if (git_repository_odb(&odb, remote->repo) < 0)
|
||||
if (git_repository_odb__weakptr(&odb, remote->repo) < 0)
|
||||
return -1;
|
||||
|
||||
if (git_refspec__parse(&tagspec, GIT_REFSPEC_TAGS, true) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user