Commit f0ff8d4c1b171d0a9bceba738489b9ec0e76296f

Stefan Sperling 2020-12-26T23:14:26

fix tag object leak introduced in previous commit

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/reference.c b/lib/reference.c
index 2a0a381..2cd2c5f 100644
--- a/lib/reference.c
+++ b/lib/reference.c
@@ -1487,6 +1487,7 @@ got_reflist_object_id_map_create(struct got_reflist_object_id_map **map,
 
 		err = add_object_id_map_entry(idset,
 		    got_object_tag_get_object_id(tag), re);
+		got_object_tag_close(tag);
 		if (err)
 			goto done;