diff --git a/unix/uxgen.c b/unix/uxgen.c index 6c579174..7bed295c 100644 --- a/unix/uxgen.c +++ b/unix/uxgen.c @@ -32,5 +32,7 @@ char *get_random_data(int len) ngot += ret; } + close(fd); + return buf; }