chiark / gitweb /
acpi-fptd: fix memory leak in acpi_get_boot_usec
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 2 Oct 2013 11:39:49 +0000 (13:39 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 2 Oct 2013 11:39:49 +0000 (13:39 +0200)
src/shared/acpi-fpdt.c

index b094f34..a7c83ed 100644 (file)
@@ -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;