svn commit: r226828 - head/contrib/tzcode/stdtime

Mikolaj Golub trociny at FreeBSD.org
Thu Oct 27 08:44:07 UTC 2011


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)


More information about the svn-src-all mailing list