Commit 37ebab0a227b033a388435a411feeec981969bca

Stefan Sperling 2020-03-18T16:13:44

free objects when indexing is done

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index fdf9a48..444ad15 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -725,6 +725,7 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t *pack_hash,
 		goto done;
 	}
 done:
+	free(objects);
 	free(packidx.hdr.magic);
 	free(packidx.hdr.version);
 	free(packidx.hdr.fanout_table);