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://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e326fb5b2c1a839bbe7f879c7efa2af2ed33420;p=thirdparty%2Fsystemd.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 b094f34a5f4..a7c83ed8555 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;