ACPI / resources: free memory on error in add_region_before()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 24 Jun 2015 14:30:15 +0000 (17:30 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Jun 2015 17:52:34 +0000 (19:52 +0200)
commit7bc10388ccdd79b3d20463151a1f8e7a590a775b
treeb8a4839a2ed55804273bfe6818bfd676f8cf13c2
parent0f1b414d190724617eb1cdd615592fa8cd9d0b50
ACPI / resources: free memory on error in add_region_before()

There is a small memory leak on error.

Fixes: 0f1b414d1907 (ACPI / PNP: Avoid conflicting resource reservations)
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/resource.c