From: Eric Sunshine Date: Fri, 17 Jul 2015 22:59:59 +0000 (-0400) Subject: checkout: die_if_checked_out: simplify strbuf management X-Git-Tag: v2.12.0~2^2~11 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4e07815dba5ccad0cfcb672b99e2000bd3dc3543?hp=4e07815dba5ccad0cfcb672b99e2000bd3dc3543 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 Signed-off-by: Junio C Hamano ---