commit ff6cc066002c80a4503e255f3a5a974734d223af from: Stefan Sperling date: Sat Jul 10 22:48:52 2021 UTC remove now unused variable in browse_ref_tree() I overlooked; patch by naddy commit - bc573f3b85b11a3e55feecd664803f1cb71f4204 commit + ff6cc066002c80a4503e255f3a5a974734d223af blob - c75f634ec41b4abc1db148e4d979cb0e26db4f76 blob + 2f62fb3e673f0c53cddd9996f7e60b4f2277bbeb --- tog/tog.c +++ tog/tog.c @@ -6052,7 +6052,6 @@ browse_ref_tree(struct tog_view **new_view, int begin_ { const struct got_error *err = NULL; struct got_object_id *commit_id = NULL; - struct got_tree_object *tree = NULL; struct tog_view *tree_view; *new_view = NULL; @@ -6080,10 +6079,6 @@ browse_ref_tree(struct tog_view **new_view, int begin_ *new_view = tree_view; done: free(commit_id); - if (err) { - if (tree) - got_object_tree_close(tree); - } return err; } static const struct got_error *