Commit 0b2437bb by Patrick Steinhardt

pack-objects: fix memory leak in compute_write_order

parent a53d2e39
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment