mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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…
x
Reference in New Issue
Block a user