X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/47a6b94c2389f0e2a4f42706818a12369746b713..1e00c92b81273392a7db4796dc163b0729891e44:/unix/uxgen.c 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; }