Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 19:07:09 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r230842 - stable/8/lib/libc/stdtime
Message-ID:  <201201311907.q0VJ79K6050772@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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