diff options
| author | Simon J. Gerraty <sjg@FreeBSD.org> | 2012-11-04 02:52:03 +0000 |
|---|---|---|
| committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2012-11-04 02:52:03 +0000 |
| commit | 23090366f729c56cab62de74c7a51792357e98a9 (patch) | |
| tree | c511c885796e28ec571b5267e8f11f3b103d35e9 /games/random | |
| parent | 7750ad47a9a7dbc83f87158464170c8640723293 (diff) | |
| parent | 22ff74b2f44234d31540b1f7fd6c91489c37cad3 (diff) | |
Notes
Diffstat (limited to 'games/random')
| -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; |
