In 0.83git now. Fix minor leaks in libcdio 0.82 detected by cppcheck

via Eric Sesterhenn.
This commit is contained in:
R. Bernstein
2009-10-27 21:00:51 -04:00
parent 5ead040aea
commit 273ba31e3a
11 changed files with 19 additions and 7 deletions

View File

@@ -737,6 +737,7 @@ close_tray_freebsd (const char *psz_device)
if((i_rc = ioctl(fd, CDIOCCLOSE)) != 0) {
cdio_warn ("ioctl CDIOCCLOSE failed: %s\n", strerror(errno));
close(fd);
return DRIVER_OP_ERROR;
}
close(fd);