Commit Diff


commit - dbd4010a985e2247831767266dccf19288d1f6b7
commit + 5c584cf5785c945cd2a86cd9202f672801edec1e
blob - 19f53cd336e1f681a848f257513519ba586232bc
blob + 81b54dbe2110510c5611bd7e3319a1dabea52172
--- 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,