mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05:00
Missing close() causing resource leak when reading from /dev/random.
[originally from svn r8991]
This commit is contained in:
@ -32,5 +32,7 @@ char *get_random_data(int len)
|
||||
ngot += ret;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user