config: close config file handle in case of error
commit54d160ec0deebfa7bf0cfc499c69ff5364b118c6
authorSven Strickroth <sven@cs-ware.de>
Fri, 14 Aug 2015 20:21:17 +0000 (14 22:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Aug 2015 20:49:41 +0000 (14 13:49 -0700)
treea8177fc47f87081642ea8736839bfec0b74465cd
parente88b8586bfd967cbfec62359cf4c53ec65848054
config: close config file handle in case of error

When updating an existing configuration file, we did not always
close the filehandle that is reading from the current configuration
file when we encountered an error (e.g. when unsetting a variable
that does not exist).

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c