commit 85a6d91e579b8b438666dabb442ebfb944d1483e3b41bf0e3e89abaebf4a5662 from: Stefan Sperling date: Sat Aug 22 14:19:03 2026 UTC do not leak new_tree_id in commit_worktree() commit - dc1388069cef004593109db0519b3f0a3c14ec3c21105b0e72e5a926bf60788a commit + 85a6d91e579b8b438666dabb442ebfb944d1483e3b41bf0e3e89abaebf4a5662 blob - 18798fa7800129db24cfc0d17140933635a6268d6c45c06bc2cea2481f51a541 blob + 150d020b4fef9e7c1561ab171748f0fdd1fbf48d265b3a107a54b606260a9d6a --- lib/worktree.c +++ lib/worktree.c @@ -6703,6 +6703,7 @@ commit_worktree(struct got_object_id **new_commit_id, if (err) goto done; done: + free(new_tree_id); got_object_id_queue_free(&parent_ids); if (head_tree) got_object_tree_close(head_tree);