valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0058-acpi-fptd-fix-memory-leak-in-acpi_get_boot_usec.patch

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