summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-10-02 13:39:49 +0200
committerLukas Nykryn <lnykryn@redhat.com>2013-10-02 13:39:49 +0200
commit7e326fb5b2c1a839bbe7f879c7efa2af2ed33420 (patch)
tree244251ed63fd3e34ea8ba7664efcf9ddcaf1b3db
parent1434ae6fd49f8377b0ddbd4c675736e0d3226ea6 (diff)
acpi-fptd: fix memory leak in acpi_get_boot_usec
-rw-r--r--src/shared/acpi-fpdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
index b094f34a5f..a7c83ed855 100644
--- a/src/shared/acpi-fpdt.c
+++ b/src/shared/acpi-fpdt.c
@@ -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;