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:
parent
b7d2abe095
commit
75f1d3ed94
@ -32,5 +32,7 @@ char *get_random_data(int len)
|
||||
ngot += ret;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user