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:
Colin Percival 2009-10-26 23:24:59 +00:00
parent bed992dc26
commit 207ec3a836

View File

@ -239,5 +239,6 @@ mediaEjectCDROM(Device *dev)
else { else {
ioctl(fd, CDIOCALLOW); ioctl(fd, CDIOCALLOW);
ioctl(fd, CDIOCEJECT); ioctl(fd, CDIOCEJECT);
close(fd);
} }
} }