hal/hald/linux/libsysfs sysfs_dir.c,1.2,1.3

David Zeuthen david at freedesktop.org
Thu Aug 26 15:16:19 PDT 2004


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

Modified Files:
	sysfs_dir.c 
Log Message:
2004-08-27  David Zeuthen  <david at fubar.dk>

	* AUTHORS: Add Kay Sievers <kay.sievers at vrfy.org> cause he rocks.
	Sort the list in alphabetical order of surname (I'm just soo
	political correct :-)

	* fdi/20freedesktop/canon-digital-ixus-v.fdi: Merge onto usb_device
	since we really don't know what interface to target

	* hald/linux/hald_helper.h: Change comment about seqnum

	* hald/linux/libsysfs/sysfs_dir.c (sysfs_open_link): Patch from
	Steve Grubb <linux4_ever at yahoo.com> to fix leak on error condition.

	* hald/linux/osspec.c: 
	(add_computer_callouts_done): Move from TDL to GDL
	(osspec_probe): Add to TDL; callouts may need it (seen by Kristof
	Vansant <de_lupus at pandora.be>
	(hald_helper_device_node): Print out seqnum
	(hald_helper_data): Pass seqnum

	* hald/logger.h: Ignore ENABLE_VERBOSE_MODE; always compile all
	logging statements in (should take the heat of some bugreports)

	* tools/linux/hal_dev.c (main): Pass seqnum if available; otherwise
	pass -1.



Index: sysfs_dir.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/libsysfs/sysfs_dir.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- sysfs_dir.c	18 Jul 2004 15:21:23 -0000	1.2
+++ sysfs_dir.c	26 Aug 2004 22:16:17 -0000	1.3
@@ -515,6 +515,7 @@
 	    || (sysfs_get_link(linkpath, ln->target, SYSFS_PATH_MAX)) != 0) {
 		errno = EINVAL;
 		dprintf("Invalid link path %s\n", linkpath);
+		free (ln);
 		return NULL;
 	}
 




More information about the hal-commit mailing list