ACPICA: Fix memory leak in table load error path
[sfrench/cifs-2.6.git] / drivers / acpi / executer / exconfig.c
index dd43b00e18b5cd28aced638fbef01f027881c53c..20a5ab87e88f6fc978c0813fb31a96ee8a88033f 100644 (file)
@@ -413,7 +413,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
         */
        status = acpi_tb_add_table(table_ptr, &table_index);
        if (ACPI_FAILURE(status)) {
-               return_ACPI_STATUS(status);
+               goto cleanup;
        }
 
        status =