I have no idea at what i'm looking at, as valgrind does not report
anything useful. So i'm giving a try to pmu.c as i run a ppc.

I found two leaks in hald/linux/pmu.c:pmu_poll which is a timer
function. The fix is trivial.

As i don't know anything about the leak, i don't know how to reproduce
it. I look at hald memory usage from time to time ...

-- 
Benoît Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html
--- hald/linux/pmu.c	2007-04-03 18:38:50.000000000 +0200
+++ hald/linux/pmu.c.new	2007-07-25 01:06:22.000000000 +0200
@@ -280,6 +280,8 @@
 		}
 	}
 
+	g_slist_free (devices);
+
 	devices = hal_device_store_match_multiple_key_value_string (hald_get_gdl (),
 								    "info.category",
 								    "ac_adapter");
@@ -295,6 +297,7 @@
 		}
 	}
 
+	g_slist_free (devices);
 	return TRUE;
 }
 

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to