hal ChangeLog,1.447,1.448

David Zeuthen david at freedesktop.org
Sun Feb 27 20:53:17 PST 2005


Update of /cvs/hal/hal
In directory gabe:/tmp/cvs-serv22133

Modified Files:
	ChangeLog 
Log Message:
2005-02-27  David Zeuthen  <davidz at redhat.com>

	More fun with valgrind :-)

	* hald/linux2/classdev.c: Fix a bunch of leaks by calling
	g_object_unref for HalDevice objects that goes away

	* hald/linux2/physdev.c: Fix a bunch of leaks by calling
	g_object_unref for HalDevice objects that goes away

	* hald/linux2/hotplug.c (hotplug_event_begin_sysfs): Don't
	leak parent_path

	* hald/linux2/coldplug.c (free_hash_sys_to_class_in_dev): New
	function; to free values of the sysfs_to_class_in_devices_map
	hashtable
	(coldplug_synthesize_events): Fix memory leaks

	* hald/linux2/blockdev.c: Fix a bunch of leaks by calling
	g_object_unref for HalDevice objects that goes away

	* hald/property.c (hal_property_set_string): Don't leak old value

	* hald/hald_dbus.c (sender_has_privileges): Fixup error handling
	(device_property_atomic_update_end): Fix memory leak

	* hald/hald.h: Add HALD_MEMLEAK_DBG but uncomment it by default

	* hald/hald.c (my_shutdown): New function, defined only if
	HALD_MEMLEAK_DBG is set; should prolly be invoked by handler
	registered with atexit(3); some day in the future
	(osspec_probe_done): Add appropriate timeout if HALD_MEMLEAK_DBG
	is et

	* hald/device.c (hal_device_finalize, hal_device_new): Recognize
	the HALD_MEMLEAK_DBG define and maintain dbg_hal_device_object_delta
	accordingly.
	(hal_device_set_udi): Don't leak old udi

	* hald/valgrind-hald.sh: New file - useful for finding memory
	leaks



Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.447
retrieving revision 1.448
diff -u -d -r1.447 -r1.448
--- ChangeLog	28 Feb 2005 01:16:46 -0000	1.447
+++ ChangeLog	28 Feb 2005 04:53:15 -0000	1.448
@@ -1,5 +1,47 @@
 2005-02-27  David Zeuthen  <davidz at redhat.com>
 
+	More fun with valgrind :-)
+
+	* hald/linux2/classdev.c: Fix a bunch of leaks by calling
+	g_object_unref for HalDevice objects that goes away
+
+	* hald/linux2/physdev.c: Fix a bunch of leaks by calling
+	g_object_unref for HalDevice objects that goes away
+
+	* hald/linux2/hotplug.c (hotplug_event_begin_sysfs): Don't
+	leak parent_path
+
+	* hald/linux2/coldplug.c (free_hash_sys_to_class_in_dev): New
+	function; to free values of the sysfs_to_class_in_devices_map
+	hashtable
+	(coldplug_synthesize_events): Fix memory leaks
+
+	* hald/linux2/blockdev.c: Fix a bunch of leaks by calling
+	g_object_unref for HalDevice objects that goes away
+
+	* hald/property.c (hal_property_set_string): Don't leak old value
+
+	* hald/hald_dbus.c (sender_has_privileges): Fixup error handling
+	(device_property_atomic_update_end): Fix memory leak
+
+	* hald/hald.h: Add HALD_MEMLEAK_DBG but uncomment it by default
+
+	* hald/hald.c (my_shutdown): New function, defined only if
+	HALD_MEMLEAK_DBG is set; should prolly be invoked by handler
+	registered with atexit(3); some day in the future
+	(osspec_probe_done): Add appropriate timeout if HALD_MEMLEAK_DBG
+	is et
+
+	* hald/device.c (hal_device_finalize, hal_device_new): Recognize
+	the HALD_MEMLEAK_DBG define and maintain dbg_hal_device_object_delta
+	accordingly.
+	(hal_device_set_udi): Don't leak old udi
+
+	* hald/valgrind-hald.sh: New file - useful for finding memory
+	leaks
+
+2005-02-27  David Zeuthen  <davidz at redhat.com>
+
 	Played around with Valgrind on this slow Sunday :-). Before this
 	patch options 'valgrind --show-reachable=yes --leak-check=yes
 	--tool=memcheck ./hald --daemon=no --retain-privileges' - remember




More information about the hal-commit mailing list