kconfig: fix missing fclose() on error paths
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 8 Feb 2022 06:26:18 +0000 (15:26 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 10 Feb 2022 00:17:26 +0000 (09:17 +0900)
commitd23a0c3718222a42430fd56359478a6fc7675070
tree8795d50d15a90ce4fb5712b6851c5dd9a020a98d
parent1cf5f151d25fcca94689efd91afa0253621fb33a
kconfig: fix missing fclose() on error paths

The file is not closed when ferror() fails.

Fixes: 00d674cb3536 ("kconfig: refactor conf_write_dep()")
Fixes: 57ddd07c4560 ("kconfig: refactor conf_write_autoconf()")
Reported-by: Ryan Cai <ycaibb@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c