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;