summaryrefslogtreecommitdiffstats
path: root/t/t4018/cpp-function-returning-pointer
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-07-17 18:59:59 -0400
committerJunio C Hamano <gitster@pobox.com>2015-07-20 11:29:24 -0700
commit4e07815dba5ccad0cfcb672b99e2000bd3dc3543 (patch)
treea5ba2f603431a4c60649911a1f53d1fb5ea4d6aa /t/t4018/cpp-function-returning-pointer
parentaaad2c948f11cd57348135fb1e62b012db716182 (diff)
downloadgit-4e07815dba5ccad0cfcb672b99e2000bd3dc3543.tar.gz
git-4e07815dba5ccad0cfcb672b99e2000bd3dc3543.zip
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 't/t4018/cpp-function-returning-pointer')
0 files changed, 0 insertions, 0 deletions