diff options
| author | Eitan Adler <eadler@FreeBSD.org> | 2012-10-22 03:06:59 +0000 |
|---|---|---|
| committer | Eitan Adler <eadler@FreeBSD.org> | 2012-10-22 03:06:59 +0000 |
| commit | c969ca9408ebdda12176a10520a73ea4f7a3c23c (patch) | |
| tree | 2530efff7d746fe90f4ebc8ef531a3703aaf0e9d /games | |
| parent | d1ea2c6674fb265a704a86155209ccae0ebba312 (diff) | |
Notes
Diffstat (limited to 'games')
| -rw-r--r-- | games/random/randomize_fd.c | 2 |
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; |
