plug leak of ref in cmd_tree(); found by naddy
diff --git a/tog/tog.c b/tog/tog.c
index 7c2c366..7a0e74a 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -5567,6 +5567,8 @@ done:
free(cwd);
free(commit_id);
free(label);
+ if (ref)
+ got_ref_close(ref);
if (commit)
got_object_commit_close(commit);
if (tree)