svn commit: r230842 - stable/8/lib/libc/stdtime

John Baldwin jhb at FreeBSD.org
Tue Jan 31 19:07:09 UTC 2012


Author: jhb
Date: Tue Jan 31 19:07:08 2012
New Revision: 230842
URL: http://svn.freebsd.org/changeset/base/230842

Log:
  MFC 226828: Fix a memory leak in tzload().

Modified:
  stable/8/lib/libc/stdtime/localtime.c
Directory Properties:
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/stdtime/localtime.c
==============================================================================
--- stable/8/lib/libc/stdtime/localtime.c	Tue Jan 31 19:02:33 2012	(r230841)
+++ stable/8/lib/libc/stdtime/localtime.c	Tue Jan 31 19:07:08 2012	(r230842)
@@ -457,6 +457,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-8 mailing list