ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
572a44
From eaa9e2f4c332d7cf8ee4bc9e377edb2043031e85 Mon Sep 17 00:00:00 2001
572a44
From: Lukas Nykryn <lnykryn@redhat.com>
572a44
Date: Wed, 2 Oct 2013 13:39:49 +0200
572a44
Subject: [PATCH] acpi-fptd: fix memory leak in acpi_get_boot_usec
572a44
572a44
---
572a44
 src/shared/acpi-fpdt.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
572a44
index b094f34..a7c83ed 100644
572a44
--- a/src/shared/acpi-fpdt.c
572a44
+++ b/src/shared/acpi-fpdt.c
572a44
@@ -81,7 +81,7 @@ struct acpi_fpdt_boot {
572a44
 };
572a44
 
572a44
 int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
572a44
-        char *buf;
572a44
+        _cleanup_free_ char *buf;
572a44
         struct acpi_table_header *tbl;
572a44
         size_t l;
572a44
         struct acpi_fpdt_header *rec;