File descriptor leak in libcam

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Sat, 29 Apr 2006 17:28:40 -0400
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_at_FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

Received on Sat Apr 29 2006 - 19:28:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC