Diff between 8779f3db6cbb2a9e1d64842ea2d58eec2ed9fc59 and f58086c23f18af5657fd4af1753efcc66adc9d90

Changed Files

File Additions Deletions Status
emulator/phy.c +3 -0 modified

Full Patch

diff --git a/emulator/phy.c b/emulator/phy.c
index 9965cca..6852347 100644
--- a/emulator/phy.c
+++ b/emulator/phy.c
@@ -68,6 +68,9 @@ static bool get_random_bytes(void *buf, size_t num_bytes)
 		return false;
 
 	len = read(fd, buf, num_bytes);
+
+	close(fd);
+
 	if (len < 0)
 		return false;