Commit Diff


commit - 39cd0ff604a65773942da81512c232ca65c45784
commit + 1675efa342dccf76ae377291179e8ebf4ab882a2
blob - bf3f6ff01a71523d529be68f751ce1f48152e37e
blob + fd6955db5b5c9dc9dde0cc01a12766ae07d72391
--- lib/worktree.c
+++ lib/worktree.c
@@ -3359,7 +3359,6 @@ done:
 		got_object_tree_close(head_tree);
 	if (head_commit)
 		got_object_commit_close(head_commit);
-	free(head_commit_id);
 	free(head_commit_id2);
 	if (head_ref)
 		got_ref_close(head_ref);