Author: eadler
Date: Thu Oct 25 03:27:53 2012
New Revision: 242053
URL: http://svn.freebsd.org/changeset/base/242053
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/9/games/random/randomize_fd.c
Directory Properties:
stable/9/games/random/ (props changed)
Modified: stable/9/games/random/randomize_fd.c
==============================================================================
--- stable/9/games/random/randomize_fd.c Thu Oct 25 03:27:53 2012
(r242052)
+++ stable/9/games/random/randomize_fd.c Thu Oct 25 03:27:53 2012
(r242053)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"