Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 03:27:53 +0000 (UTC)
From:      Eitan Adler <eadler@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: r242052 - stable/8/games/random
Message-ID:  <201210250327.q9P3RrBK061470@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Thu Oct 25 03:27:53 2012
New Revision: 242052
URL: http://svn.freebsd.org/changeset/base/242052

Log:
  MFC r241847:
  	Free buf when its no longer used. This helps eliminate a static analysis
  	warning.
  
  PR:		ports/172566
  Approved by:	cperciva (implicit)

Modified:
  stable/8/games/random/randomize_fd.c
Directory Properties:
  stable/8/games/random/   (props changed)

Modified: stable/8/games/random/randomize_fd.c
==============================================================================
--- stable/8/games/random/randomize_fd.c	Thu Oct 25 03:24:24 2012	(r242051)
+++ stable/8/games/random/randomize_fd.c	Thu Oct 25 03:27:53 2012	(r242052)
@@ -207,6 +207,8 @@ randomize_fd(int fd, int type, int uniqu
 		goto make_token;
 	}
 
+	free(buf);
+
 	for (i = numnode; i > 0; i--) {
 		selected = random() % numnode;
 



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