commit - 6605806560809260b88f55d90db98463d6771fa2
commit + 7222c2df59f59fd201ffc9fe0be4e4b5edaff9d5
blob - 2b6875912a07bb15f3641f9d303b26cce3d0d834
blob + d56906980625ecb4b810ed267b6aca1586fd68bb
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
got_object_idset_contains(skip, &pid->id))
continue;
- err = queue_commit_id(&repaint, &pid->id, color);
+ err = queue_commit_id(&repaint, &pid->id,
+ color);
if (err)
- break;
+ goto done;
}
}
got_object_commit_close(commit);
STAILQ_FOREACH(qid, painted, entry) {
if (got_object_id_cmp(&qid->id, &pid->id) != 0)
continue;
- paint_commit(qid, color);
+ err = paint_commit(qid, color);
+ if (err)
+ goto done;
got_object_qid_free(pid);
pid = qid;
break;
STAILQ_FOREACH_SAFE(qid, ids, entry, tmp) {
if (got_object_id_cmp(&qid->id, &pid->id) != 0)
continue;
- paint_commit(qid, color);
+ err = paint_commit(qid, color);
+ if (err)
+ goto done;
break;
}
break;
}
}
-
+done:
if (commit)
got_object_commit_close(commit);
got_object_id_queue_free(&repaint);