aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-10-22 03:06:59 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-10-22 03:06:59 +0000
commitc969ca9408ebdda12176a10520a73ea4f7a3c23c (patch)
tree2530efff7d746fe90f4ebc8ef531a3703aaf0e9d /games
parentd1ea2c6674fb265a704a86155209ccae0ebba312 (diff)
Notes
Diffstat (limited to 'games')
-rw-r--r--games/random/randomize_fd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/random/randomize_fd.c b/games/random/randomize_fd.c
index da41769ffbb6..f66b9654d281 100644
--- a/games/random/randomize_fd.c
+++ b/games/random/randomize_fd.c
@@ -207,6 +207,8 @@ randomize_fd(int fd, int type, int unique, double denom)
goto make_token;
}
+ free(buf);
+
for (i = numnode; i > 0; i--) {
selected = random() % numnode;