X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b165006759a81e8ecc4e86e0540fd69343ea46e9..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; }