--- /home/dzheika/xfce4-sensors-plugin-1.2.5/lib/acpi.c 2012-05-14 19:55:47.000000000 +0400 +++ /home/dzheika/xfce4-sensors-plugin-1.2.5_p1/lib/acpi.c 2013-03-29 19:03:16.000000000 +0400 @@ -289,8 +289,8 @@ #endif DBG ("filename=%s\n", filename); file = fopen (filename, "r"); + chipfeature = g_new0 (t_chipfeature, 1); if (file) { - chipfeature = g_new0 (t_chipfeature, 1); chipfeature->address = chip->chip_features->len; chipfeature->devicename = g_strdup (de->d_name); @@ -364,6 +364,7 @@ } else { g_free (filename); + g_free (chipfeature); continue; /* because, what would we want to do with only a maxval and no real value inside? */ }