Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse.
[u/mdw/putty] / unix / uxnoise.c
index 7ebb9a5..c42466f 100644 (file)
@@ -35,6 +35,8 @@ static int read_dev_urandom(char *buf, int len)
        ngot += ret;
     }
 
+    close(fd);
+
     return 1;
 }