plug memleak in got_open_worktree()
diff --git a/lib/worktree.c b/lib/worktree.c
index 2b9d193..c51294c 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -417,6 +417,7 @@ done:
free(head_ref_str);
free(base_commit_id_str);
free(uuidstr);
+ free(formatstr);
if (err) {
if (fd != -1)
close(fd);