[PATCH 10/11] ACPICA: acpiexec: fix a small memory leak regression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bob Moore <robert.moore@xxxxxxxxx>

Eliminates warnings only seen when acpiexec exits.

Signed-off-by: Bob Moore <robert.moore@xxxxxxxxx>
Signed-off-by: Erik Schmauss <erik.schmauss@xxxxxxxxx>
---
 drivers/acpi/acpica/dsfield.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/acpica/dsfield.c b/drivers/acpi/acpica/dsfield.c
index 5581300927de..30fe89545d6a 100644
--- a/drivers/acpi/acpica/dsfield.c
+++ b/drivers/acpi/acpica/dsfield.c
@@ -417,10 +417,9 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info,
 						     acpi_ns_get_attached_object
 						     (info->field_node),
 						     &result_desc);
-						ACPI_FREE(name_path);
-						acpi_ut_remove_reference
-						    (obj_desc);
 					}
+					acpi_ut_remove_reference(obj_desc);
+					ACPI_FREE(name_path);
 #endif
 				}
 			}
-- 
2.17.1




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux