Commit d6c38e0dea408f682753c7d187bf15e48fd51df6

Stefan Sperling 2018-03-11T13:08:03

free base commit when worktree is closed

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/worktree.c b/lib/worktree.c
index b9b67fb..4355b63 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -317,6 +317,7 @@ got_worktree_close(struct got_worktree *worktree)
 	free(worktree->path_worktree_root);
 	free(worktree->path_repo);
 	free(worktree->path_prefix);
+	free(worktree->base_commit);
 	if (worktree->lockfd != -1)
 		close(worktree->lockfd);
 	free(worktree);