mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-25 10:48:44 +00:00
local: fix memory leak
This commit is contained in:
parent
9a50026b19
commit
3dee36557e
@ -227,6 +227,7 @@ static int local_negotiate_fetch(
|
|||||||
git_oid_cpy(&rhead->loid, git_object_id(obj));
|
git_oid_cpy(&rhead->loid, git_object_id(obj));
|
||||||
else if (error != GIT_ENOTFOUND)
|
else if (error != GIT_ENOTFOUND)
|
||||||
return error;
|
return error;
|
||||||
|
git_object_free(obj);
|
||||||
giterr_clear();
|
giterr_clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user