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

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