Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2011 08:44:07 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226828 - head/contrib/tzcode/stdtime
Message-ID:  <201110270844.p9R8i7Xc092784@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trociny
Date: Thu Oct 27 08:44:07 2011
New Revision: 226828
URL: http://svn.freebsd.org/changeset/base/226828

Log:
  Fix a memory leak in tzload().
  
  Reported by:	valgrind
  Reviewed by:	kib
  MFC after:	3 days

Modified:
  head/contrib/tzcode/stdtime/localtime.c

Modified: head/contrib/tzcode/stdtime/localtime.c
==============================================================================
--- head/contrib/tzcode/stdtime/localtime.c	Thu Oct 27 07:20:30 2011	(r226827)
+++ head/contrib/tzcode/stdtime/localtime.c	Thu Oct 27 08:44:07 2011	(r226828)
@@ -450,6 +450,7 @@ register const int	doextend;
 			_close(fid);
 			return -1;
 		}
+		free(fullname);
 	}
 	u = malloc(sizeof(*u));
 	if (u == NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110270844.p9R8i7Xc092784>