File xfce4-sensors-plugin-1.0.0-fix-memory-leaks.patch of Package xfce4-panel-plugins.907

diff -ur xfce4-sensors-plugin-1.0.0.orig/lib/acpi.c xfce4-sensors-plugin-1.0.0/lib/acpi.c
--- xfce4-sensors-plugin-1.0.0.orig/lib/acpi.c	2010-03-27 16:11:48.000000000 +0100
+++ xfce4-sensors-plugin-1.0.0/lib/acpi.c	2011-01-01 01:23:15.000000000 +0100
@@ -631,6 +631,7 @@
     TRACE ("leaves get_acpi_info");
 
     version = get_acpi_value (filename);
+    g_free (filename);
     if (version!=NULL)
         version = g_strchomp (version);
 
@@ -654,6 +655,7 @@
 
     filename = g_strdup_printf ("%s/%s/%s", ACPI_PATH, zone, file);
     value = get_acpi_value (filename);
+    g_free(filename);
 
     TRACE ("leaves get_acpi_zone_value with correctly converted value");
 
openSUSE Build Service is sponsored by