X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3b2ffe3bea3504e907d8f39c473b9895dfd1d08e..038ec85e825fc940c1387f64a88ae73b75f6822b:/unix/uxgen.c diff --git a/unix/uxgen.c b/unix/uxgen.c index 7bed295c..156d4efe 100644 --- a/unix/uxgen.c +++ b/unix/uxgen.c @@ -26,6 +26,7 @@ char *get_random_data(int len) ret = read(fd, buf+ngot, len-ngot); if (ret < 0) { close(fd); + sfree(buf); perror("puttygen: unable to read /dev/random"); return NULL; }