mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
Don't leak a file descriptor when ejecting a CDROM.
Submitted by: Ronald Klop, trhodes Note to self: don't do commits while half-asleep
This commit is contained in:
parent
bed992dc26
commit
207ec3a836
1 changed files with 1 additions and 0 deletions
|
|
@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev)
|
|||
else {
|
||||
ioctl(fd, CDIOCALLOW);
|
||||
ioctl(fd, CDIOCEJECT);
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue