1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Missing close() causing resource leak when reading from /dev/random.

[originally from svn r8991]
This commit is contained in:
Simon Tatham 2010-09-09 14:36:46 +00:00
parent b7d2abe095
commit 75f1d3ed94

View File

@ -32,5 +32,7 @@ char *get_random_data(int len)
ngot += ret; ngot += ret;
} }
close(fd);
return buf; return buf;
} }