Commit 48d5fe422307cd31e7dc2af67d5eb5e7384710b0

Stefan Sperling 2018-09-15T20:36:29

close object cache when got-read-pack exits

1
2
3
4
5
6
7
8
9
10
11
12
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);