commit 063253307314ac1b90e8cd14b32cd11f93d31177 from: Omar Polo via: Thomas Adam date: Fri Sep 02 15:54:01 2022 UTC gotwebd: kill unused id_str in got_output_repo_tree ok stsp@ commit - ccff619c1232894de361a4f436f9695a57d7f401 commit + 063253307314ac1b90e8cd14b32cd11f93d31177 blob - 25cd3fa766ecf4f0c281b4082a53fba930fa6c07 blob + 5d1a7898fc6d2054c70b36f3156ae2eb76c29e31 --- gotwebd/got_operations.c +++ gotwebd/got_operations.c @@ -816,7 +816,7 @@ got_output_repo_tree(struct request *c) struct got_tree_object *tree = NULL; struct repo_dir *repo_dir = t->repo_dir; const char *name, *index_page_str, *folder; - char *id_str = NULL, *escaped_name = NULL, *path = NULL; + char *escaped_name = NULL, *path = NULL; int nentries, i, r; TAILQ_INIT(&refs); @@ -864,10 +864,6 @@ got_output_repo_tree(struct request *c) te = got_object_tree_get_entry(tree, i); - error = got_object_id_str(&id_str, got_tree_entry_get_id(te)); - if (error) - goto done; - mode = got_tree_entry_get_mode(te); if (got_object_tree_entry_is_submodule(te)) modestr = "$"; @@ -923,14 +919,11 @@ got_output_repo_tree(struct request *c) if (r == -1) goto done; } - free(id_str); - id_str = NULL; free(escaped_name); escaped_name = NULL; } done: free(escaped_name); - free(id_str); free(path); got_ref_list_free(&refs); if (commit)