aboutsummaryrefslogtreecommitdiffstats
path: root/ui-refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-refs.c')
-rw-r--r--ui-refs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-refs.c b/ui-refs.c
index ce06b08..4a9b8d3 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -205,6 +205,8 @@ void cgit_print_branches(int maxcount)
205 205
206 if (maxcount < list.count) 206 if (maxcount < list.count)
207 print_refs_link("heads"); 207 print_refs_link("heads");
208
209 cgit_free_reflist_inner(&list);
208} 210}
209 211
210void cgit_print_tags(int maxcount) 212void cgit_print_tags(int maxcount)
@@ -229,6 +231,8 @@ void cgit_print_tags(int maxcount)
229 231
230 if (maxcount < list.count) 232 if (maxcount < list.count)
231 print_refs_link("tags"); 233 print_refs_link("tags");
234
235 cgit_free_reflist_inner(&list);
232} 236}
233 237
234void cgit_print_refs() 238void cgit_print_refs()