Debugger: free Pathname on error return path to fix memory leak
Colin King
PATCH 1/1 Debugger: free Pathname on error return path to fix memory leak
From: Colin Ian King <colin.king(a)canonical.com>
On the error return path when AcpiGetObjectInfo fails the allocated pathname is not free'd leading to a memory leak. Free pathname to fix this.
Signed-off-by Colin Ian King <colin.king(a)canonical.com>
--- source/components/debugger/dbmethod.c | 1 + 1 file changed, 1 insertion(+)
source/components/debugger/dbmethod.c +1 -0
@@ -551,6 +551,7 @@ AcpiDbWalkForExecute ( Status =AcpiGetObjectInfo (ObjHandle, &ObjInfo);if (ACPI_FAILURE (Status)) { +ACPI_FREE (Pathname);return (Status); }
Signature · 1 line
2.9.3