plug a leak in got_object_idcache_add()
diff --git a/lib/object_idcache.c b/lib/object_idcache.c
index 3e8e8bd..dba2c69 100644
--- a/lib/object_idcache.c
+++ b/lib/object_idcache.c
@@ -87,6 +87,7 @@ got_object_idcache_add(struct got_object_idcache *cache,
if (cache->nelem >= cache->maxelem) {
entry = TAILQ_LAST(&cache->entries, got_object_idcache_head);
TAILQ_REMOVE(&cache->entries, entry, entry);
+ free(entry);
cache->nelem--;
}