File descriptor leak in libcam



There is a leak in the cam_lookup_pass() if the ioctl call fails to find
the passthru device. Basically, the xpt file descriptor will not be
closed. Can anyone give me permission to commit the following patch?
Thanks.

http://www.marcuscom.com/downloads/camlib.c.diff

Joe

--
Joe Marcus Clarke
FreeBSD GNOME Team :: gnome@xxxxxxxxxxx
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

Attachment: signature.asc
Description: This is a digitally signed message part