svn commit: r226929 - stable/9/contrib/tzcode/stdtime

Mikolaj Golub trociny at FreeBSD.org
Sun Oct 30 08:35:19 UTC 2011


Author: trociny
Date: Sun Oct 30 08:35:19 2011
New Revision: 226929
URL: http://svn.freebsd.org/changeset/base/226929

Log:
  MFC r226828:
  
  Fix a memory leak in tzload().
  
  PR:		bin/161425
  Reviewed by:	kib
  Approved by:	re (kib)

Modified:
  stable/9/contrib/tzcode/stdtime/localtime.c
Directory Properties:
  stable/9/contrib/tzcode/   (props changed)
  stable/9/contrib/tzcode/stdtime/   (props changed)
  stable/9/contrib/tzcode/zic/   (props changed)

Modified: stable/9/contrib/tzcode/stdtime/localtime.c
==============================================================================
--- stable/9/contrib/tzcode/stdtime/localtime.c	Sun Oct 30 05:06:14 2011	(r226928)
+++ stable/9/contrib/tzcode/stdtime/localtime.c	Sun Oct 30 08:35:19 2011	(r226929)
@@ -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-stable-9 mailing list