mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
object: add missing git_odb_object_free
This commit is contained in:
parent
dca6b228d1
commit
f95121cb4f
@ -156,8 +156,10 @@ int git_object_lookup_prefix(
|
||||
|
||||
type = odb_obj->raw.type;
|
||||
|
||||
if (create_object(&object, type) < 0)
|
||||
if (create_object(&object, type) < 0) {
|
||||
git_odb_object_free(odb_obj);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Initialize parent object */
|
||||
git_oid_cpy(&object->cached.oid, &odb_obj->cached.oid);
|
||||
|
Loading…
Reference in New Issue
Block a user