diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-07-17 18:59:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-20 11:29:24 -0700 |
commit | 4e07815dba5ccad0cfcb672b99e2000bd3dc3543 (patch) | |
tree | a5ba2f603431a4c60649911a1f53d1fb5ea4d6aa /builtin/commit.c | |
parent | aaad2c948f11cd57348135fb1e62b012db716182 (diff) | |
download | git-4e07815dba5ccad0cfcb672b99e2000bd3dc3543.tar.gz |
checkout: die_if_checked_out: simplify strbuf management
There is no reason to keep the strbuf active long after its last use.
By releasing it as early as possible, resource management is simplified
and there is less worry about future changes resulting in a leak.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions