Commit Diff
--- libexec/got-read-pack/got-read-pack.c +++ libexec/got-read-pack/got-read-pack.c @@ -1525,6 +1525,8 @@ enumeration_request(struct imsg *imsg, struct imsgbuf if (obj->type != GOT_OBJ_TYPE_COMMIT) { got_object_qid_free(qid); qid = NULL; + got_object_close(obj); + obj = NULL; continue; } err = open_commit(&commit, pack, packidx, idx,