hal/hald/linux usb_bus_device.c,1.12,1.13

David Zeuthen david at freedesktop.org
Sun Sep 19 07:47:30 PDT 2004


Update of /cvs/hal/hal/hald/linux
In directory gabe:/tmp/cvs-serv28940/hald/linux

Modified Files:
	usb_bus_device.c 
Log Message:
2004-09-19  David Zeuthen  <david at fubar.dk>

	Patch from Sjoerd Simons <sjoerd at luon.net>.

	* hald/linux/usb_bus_device.c (usb_proc_parse): usb_proc_parse()
	parses /proc/bus/usb/devices but never closes the FILE struct,
	which obviously leads to a fd leak. Fixed in attached patch.



Index: usb_bus_device.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/usb_bus_device.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- usb_bus_device.c	9 Aug 2004 18:33:29 -0000	1.12
+++ usb_bus_device.c	19 Sep 2004 14:47:28 -0000	1.13
@@ -487,6 +487,7 @@
 		fgets (buf, 256, f);
 		usb_proc_parse_line (buf);
 	}
+	fclose(f);
 	usb_proc_device_done (usb_proc_cur_info);
 
 /*




More information about the hal-commit mailing list