free objects when indexing is done
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);