Commit bd16594452e51341979fbbc89cba33b7541b1586

Stefan Sperling 2019-03-10T15:56:38

plug memleak in got_open_worktree()

1
2
3
4
5
6
7
8
9
10
11
12
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);