1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix memory leak introduced by kris in rev 1.22

This commit is contained in:
Alexey Zelkin 2000-09-01 11:56:31 +00:00
parent d85a56345e
commit a367b9700f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65323

View File

@ -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);
}