Commit Diff


commit - e0586a74fdd1c8da68d9ecce4078de8b4602df16
commit + 9e83097f9b3fc262356cc5189409a0e472d1084b
blob - c419422fe5a36542e706bb231e2eddf6e3e0fd63
blob + 4415674d74999e7b6fef5dd651fa76682cc19ca1
--- lib/worktree.c
+++ lib/worktree.c
@@ -4211,6 +4211,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);