summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/nls/msgcat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index f02af8e..ebbac70 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -134,6 +134,7 @@ int type;
if (*(nlspath + 1) == 'L') {
++nlspath;
if (strlcpy(pathP, lang, spcleft) >= spcleft) {
+ free(base);
errno = ENAMETOOLONG;
return(NLERR);
}
@@ -141,6 +142,7 @@ int type;
} else if (*(nlspath + 1) == 'N') {
++nlspath;
if (strlcpy(pathP, name, spcleft) >= spcleft) {
+ free(base);
errno = ENAMETOOLONG;
return(NLERR);
}
OpenPOWER on IntegriCloud