Commit Diff


commit - 5224cd1188b67bf768cbcfcf69ddc1e91147b386b38a031793919a6dc18ccb8f
commit + dc1388069cef004593109db0519b3f0a3c14ec3c21105b0e72e5a926bf60788a
blob - c149df7c32c65e6297bc13b201475de51b8f69af2ff12808f4d9f5c89af95da6
blob + 18798fa7800129db24cfc0d17140933635a6268d6c45c06bc2cea2481f51a541
--- lib/worktree.c	
+++ lib/worktree.c	
@@ -3604,6 +3604,8 @@ done:
 		got_object_commit_close(commit1);
 	if (commit2)
 		got_object_commit_close(commit2);
+	free(tree_id1);
+	free(tree_id2);
 	if (tree1)
 		got_object_tree_close(tree1);
 	if (tree2)