mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 23:54:50 +00:00
pack-objects: fix memory leak in compute_write_order
This commit is contained in:
parent
a53d2e3985
commit
0b2437bb68
@ -605,6 +605,7 @@ static git_pobject **compute_write_order(git_packbuilder *pb)
|
||||
}
|
||||
|
||||
if (wo_end != pb->nr_objects) {
|
||||
git__free(wo);
|
||||
giterr_set(GITERR_INVALID, "invalid write order");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user