Commit 4b2e47fbbea8bad01687813ff6604918e5bc3ab4

Stefan Sperling 2021-07-03T19:49:37

fix memory leak in error path of load_commit_or_tag()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/repository_admin.c b/lib/repository_admin.c
index 66d89c5..7461d26 100644
--- a/lib/repository_admin.c
+++ b/lib/repository_admin.c
@@ -1038,6 +1038,7 @@ done:
 		got_object_commit_close(commit);
 	if (tag)
 		got_object_tag_close(tag);
+	got_object_id_queue_free(&ids);
 	return err;
 }