summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/rune.c1
-rw-r--r--lib/libc/locale/startup_setlocale.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/locale/rune.c b/lib/libc/locale/rune.c
index 4e15480..8075825 100644
--- a/lib/libc/locale/rune.c
+++ b/lib/libc/locale/rune.c
@@ -86,6 +86,7 @@ setrunelocale(encoding)
fclose(fp);
return(EFTYPE);
}
+ fclose(fp);
if (!rl->encoding[0] || !strcmp(rl->encoding, "UTF2")) {
return(_UTF2_init(rl));
diff --git a/lib/libc/locale/startup_setlocale.c b/lib/libc/locale/startup_setlocale.c
index 3f6da49..01a6770 100644
--- a/lib/libc/locale/startup_setlocale.c
+++ b/lib/libc/locale/startup_setlocale.c
@@ -186,6 +186,7 @@ startup_setrunelocale(encoding)
fclose(fp);
return(EFTYPE);
}
+ fclose(fp);
if (!rl->encoding[0])
return(EINVAL);
OpenPOWER on IntegriCloud