hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Mon Aug 11 03:11:39 PDT 2008


 hald/linux/acpi.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3c88150d1f908c5a3de2cd9946916907471ea7d9
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Mon Aug 11 12:08:09 2008 +0200

    fixed possible memory leak
    
    Fixed possible memory leak due to usage of g_strsplit().

diff --git a/hald/linux/acpi.c b/hald/linux/acpi.c
index a7892ea..6f76af6 100644
--- a/hald/linux/acpi.c
+++ b/hald/linux/acpi.c
@@ -530,6 +530,10 @@ get_processor_model_name (gint proc_num)
 				}
 			}
 		}
+
+		if (lines) {
+			g_strfreev (lines);
+		}
 	}
 	else {
 		HAL_ERROR (("Couldn't open /proc/cpuinfo: %s", error->message));


More information about the hal-commit mailing list