pack-objects: fix memory leak in compute_write_order

This commit is contained in:
Patrick Steinhardt 2016-02-09 10:43:28 +01:00
parent a53d2e3985
commit 0b2437bb68

View File

@ -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;
}