close object cache when got-read-pack exits
diff --git a/libexec/got-read-pack/got-read-pack.c b/libexec/got-read-pack/got-read-pack.c
index 3cb0ac2..87e9fc0 100644
--- a/libexec/got-read-pack/got-read-pack.c
+++ b/libexec/got-read-pack/got-read-pack.c
@@ -491,6 +491,7 @@ main(int argc, char *argv[])
got_packidx_close(packidx);
if (pack)
got_pack_close(pack);
+ got_object_cache_close(&objcache);
imsg_clear(&ibuf);
if (err)
fprintf(stderr, "%s: %s\n", getprogname(), err->msg);