mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32: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;
|
ngot += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(fd);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user