Commit Diff


commit - fc1e772f390da687796abaf781743cb6f6e63068
commit + 61800f5902cab09a880d4a23f072f3a1a010662f
blob - d980f9e5fcf16e77de392818150df0d36e6e87ce
blob + 1af1f43cdc1babe4fe373c2d223e21312d1af61b
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
@@ -1523,6 +1523,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,