Fix a memory leak in tzload().

Reported by:	valgrind
Reviewed by:	kib
MFC after:	3 days
This commit is contained in:
Mikolaj Golub 2011-10-27 08:44:07 +00:00
parent f346986b76
commit 1ed9dc778b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226828

View File

@ -450,6 +450,7 @@ register const int doextend;
_close(fid);
return -1;
}
free(fullname);
}
u = malloc(sizeof(*u));
if (u == NULL)