Diff options
Diffstat (limited to '')
| -rw-r--r-- | source/ui-blame.c | 11 |
1 file changed, 1 insertion, 10 deletions
diff --git a/source/ui-blame.c b/source/ui-blame.c index 32a76fa..aa8d16c 100644 --- a/source/ui-blame.c +++ b/source/ui-blame.c @@ -34,15 +34,6 @@ struct walk_tree_context { // detail is cached here and looked up by object id. static struct string_list suspect_details = STRING_LIST_INIT_DUP; -static void free_suspect_details(void) -{ - struct string_list_item *item; - - for_each_string_list_item(item, &suspect_details) - free(item->util); - string_list_clear(&suspect_details, 0); -} - /* * The scoreboard keeps a pointer to revs, so the caller owns both and has to * keep them alive together. @@ -346,7 +337,7 @@ static void print_blame_page(const struct object_id *oid, const char *path, cleanup: cgit_print_layout_end(); - free_suspect_details(); + string_list_clear(&suspect_details, 1); free(buf); } |
