refs: plug strbuf leak in lock_ref_sha1_basic()
commit33adc83ddb315a614a59604a0d39caa5a1b27bdd
authorRené Scharfe <l.s.r@web.de>
Wed, 24 Dec 2014 00:18:45 +0000 (24 01:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Dec 2014 21:14:16 +0000 (29 13:14 -0800)
treeea58c4fa8f2fd59f3da8ab2944be3c7a91e30728
parentbbcefffcea9789e4a1a2023a1c778e2c07db77a7
refs: plug strbuf leak in lock_ref_sha1_basic()

Don't just reset, but release the resource held by the local
variable that is about to go out of scope.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c