Browse Source

ACPICA: Fix memory leak in table load error path

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Bob Moore 18 years ago
parent
commit
0fab8997f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/acpi/executer/exconfig.c

+ 1 - 1
drivers/acpi/executer/exconfig.c

@@ -413,7 +413,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
 	 */
 	 */
 	status = acpi_tb_add_table(table_ptr, &table_index);
 	status = acpi_tb_add_table(table_ptr, &table_index);
 	if (ACPI_FAILURE(status)) {
 	if (ACPI_FAILURE(status)) {
-		return_ACPI_STATUS(status);
+		goto cleanup;
 	}
 	}
 
 
 	status =
 	status =