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 b094f34a5f4e31700c74c2bf43b68615c0ea4acf..a7c83ed8555987bb3b3dfa4dece2b182763a0969 100644 (file)
@@ -81,7 +81,7 @@ struct acpi_fpdt_boot {
 };
 
 int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
 };
 
 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;
         struct acpi_table_header *tbl;
         size_t l;
         struct acpi_fpdt_header *rec;