Free the buffer after getting the namespace pathname. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx> --- drivers/acpi/scan.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 87d3df4..cbeb4c0 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1299,6 +1299,7 @@ end: (char *) buffer.pointer, device->parent ? dev_name(&device->parent->dev) : "(null)")); + kfree(buffer.pointer); *child = device; } else { kfree(device->pnp.cid_list); -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html