diff options
author | trociny <trociny@FreeBSD.org> | 2011-10-27 08:44:07 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-10-27 08:44:07 +0000 |
commit | bb1ea2838eca06c71027900f18b2b4b53e7bc9f8 (patch) | |
tree | 64cad6830165cd6a7372ce8f29e520f185713c7c /contrib/tzcode | |
parent | 0a7d6450d66712b7cb6e6e8396620f2e38a7d018 (diff) | |
download | FreeBSD-src-bb1ea2838eca06c71027900f18b2b4b53e7bc9f8.zip FreeBSD-src-bb1ea2838eca06c71027900f18b2b4b53e7bc9f8.tar.gz |
Fix a memory leak in tzload().
Reported by: valgrind
Reviewed by: kib
MFC after: 3 days
Diffstat (limited to 'contrib/tzcode')
-rw-r--r-- | contrib/tzcode/stdtime/localtime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/tzcode/stdtime/localtime.c b/contrib/tzcode/stdtime/localtime.c index b1981b6..9605eeb 100644 --- a/contrib/tzcode/stdtime/localtime.c +++ b/contrib/tzcode/stdtime/localtime.c @@ -450,6 +450,7 @@ register const int doextend; _close(fid); return -1; } + free(fullname); } u = malloc(sizeof(*u)); if (u == NULL) |