Commit Diff


commit - 9f6cdac7cdb5361b91da7a72bacd25be067576a2
commit + b2dcbbc7f5e06e14e36426f8d1eea7806c6b144b
blob - 7a7742772cf995f9d64acb1ade8a8c5d7269b722
blob + a2684892d360bb130f2bc0cf50f539c75321e256
--- lib/worktree.c
+++ lib/worktree.c
@@ -4208,6 +4208,7 @@ worktree_status(struct got_worktree *worktree, const c
 	}
 done:
 	free_ignores(&ignores);
+	got_pathlist_free(&missing_children, GOT_PATHLIST_FREE_NONE);
 	if (fd != -1 && close(fd) == -1 && err == NULL)
 		err = got_error_from_errno("close");
 	free(ondisk_path);