From: Vasily Averin acpi_thermal_write_trip_points() and acpi_thermal_add() do not call kfree() for allocated memory on the error path. Signed-off-by: Vasily Averin Cc: "Brown, Len" Signed-off-by: Andrew Morton --- drivers/acpi/thermal.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/acpi/thermal.c~acpi-memory-leakages-in-drivers-acpi-thermalc drivers/acpi/thermal.c --- devel/drivers/acpi/thermal.c~acpi-memory-leakages-in-drivers-acpi-thermalc 2006-04-10 23:16:26.000000000 -0700 +++ devel-akpm/drivers/acpi/thermal.c 2006-04-10 23:16:26.000000000 -0700 @@ -1329,7 +1329,7 @@ static int acpi_thermal_add(struct acpi_ result = acpi_thermal_add_fs(device); if (result) - return_VALUE(result); + goto end; init_timer(&tz->timer); _