Skip to content

Commit 62573a5

Browse files
sunshinecogitster
authored andcommitted
worktree: drop pointless strbuf_release()
The content of this strbuf is unconditionally detached several lines before the strbuf_release() and the strbuf is never touched again after that point. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 47ae905 commit 62573a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

worktree.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ static struct worktree *get_main_worktree(void)
6666
worktree->is_bare = (is_bare_repository_cfg == 1) ||
6767
is_bare_repository();
6868
add_head_info(worktree);
69-
70-
strbuf_release(&worktree_path);
7169
return worktree;
7270
}
7371

0 commit comments

Comments
 (0)