[PATCH] fix GSList related memory leaks

David Zeuthen david at fubar.dk
Tue Oct 9 10:45:18 PDT 2007


On Fri, 2007-09-28 at 18:58 +0200, Danny Kukawka wrote:
> Hi,
> 
> this patch fixes several memory leaks caused by not free'd GSList objects.

Looks good to me, thanks, although the middle line here

> +       g_slist_free (devices);
> +       devices = NULL;
>         devices = hal_device_store_match_multiple_key_value_string (hald_get_gdl (), "info.category", "ac_adapter");

seems a little superfluous.

     David




More information about the hal mailing list