Re: [PATCH] ACPI / resources: fix memory leak on request_range fail path

2015-06-30 Thread Rafael J. Wysocki
On Monday, June 29, 2015 09:17:00 PM Colin King wrote: > From: Colin Ian King > > static analysis from cppcheck detected a memory leak: > [drivers/acpi/resource.c:664]: (error) Memory leak: reg > > the error path on a failed request_range call should free > reg before returning. Bug introduced

[PATCH] ACPI / resources: fix memory leak on request_range fail path

2015-06-29 Thread Colin King
From: Colin Ian King static analysis from cppcheck detected a memory leak: [drivers/acpi/resource.c:664]: (error) Memory leak: reg the error path on a failed request_range call should free reg before returning. Bug introduced in the recent commit 0f1b414d190724617eb1cdd615592fa8cd9d0b50 ("ACPI