Commit ff6cc066002c80a4503e255f3a5a974734d223af

Stefan Sperling 2021-07-10T22:48:52

remove now unused variable in browse_ref_tree() I overlooked; patch by naddy

diff --git a/tog/tog.c b/tog/tog.c
index c75f634..2f62fb3 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -6052,7 +6052,6 @@ browse_ref_tree(struct tog_view **new_view, int begin_x,
 {
 	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_x,
 	*new_view = tree_view;
 done:
 	free(commit_id);
-	if (err) {
-		if (tree)
-			got_object_tree_close(tree);
-	}
 	return err;
 }
 static const struct got_error *