Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 08:35:19 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r226929 - stable/9/contrib/tzcode/stdtime
Message-ID:  <201110300835.p9U8ZJWF056496@svn.freebsd.org>

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



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