From 1ed9dc778b0b2476c214d7e88bea077e148a88e1 Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Thu, 27 Oct 2011 08:44:07 +0000 Subject: [PATCH] Fix a memory leak in tzload(). Reported by: valgrind Reviewed by: kib MFC after: 3 days --- contrib/tzcode/stdtime/localtime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/tzcode/stdtime/localtime.c b/contrib/tzcode/stdtime/localtime.c index b1981b61430..9605eeb30e5 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)