diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-07-31 23:32:11 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-01 02:56:10 (GMT) |
commit | 62573a57f0919f4d1129962b09462946e69025ff (patch) | |
tree | ff1eace7ce5da36d41e36140f7a86baa70c21fff /worktree.c | |
parent | 47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc (diff) | |
download | git-62573a57f0919f4d1129962b09462946e69025ff.zip git-62573a57f0919f4d1129962b09462946e69025ff.tar.gz git-62573a57f0919f4d1129962b09462946e69025ff.tar.bz2 |
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 <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.c')
-rw-r--r-- | worktree.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -66,8 +66,6 @@ static struct worktree *get_main_worktree(void) worktree->is_bare = (is_bare_repository_cfg == 1) || is_bare_repository(); add_head_info(worktree); - - strbuf_release(&worktree_path); return worktree; } |