From: Lukas Nykryn Date: Wed, 2 Oct 2013 11:39:49 +0000 (+0200) Subject: acpi-fptd: fix memory leak in acpi_get_boot_usec X-Git-Tag: v209~1996 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=inline;h=7e326fb5b2c1a839bbe7f879c7efa2af2ed33420;p=elogind.git acpi-fptd: fix memory leak in acpi_get_boot_usec --- diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c index b094f34a5..a7c83ed85 100644 --- a/src/shared/acpi-fpdt.c +++ b/src/shared/acpi-fpdt.c @@ -81,7 +81,7 @@ struct acpi_fpdt_boot { }; int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) { - char *buf; + _cleanup_free_ char *buf; struct acpi_table_header *tbl; size_t l; struct acpi_fpdt_header *rec;