From 336fdaf54c7b95d51eaf1bed4cf5463b0d5668ec Mon Sep 17 00:00:00 2001 From: Gabriel Marcano Date: Fri, 17 Feb 2023 16:00:57 -0800 Subject: iasl: Set AcpiGbl_ParseOpRoot to NULL when freed Most invocations of `AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot);` are followed by `AcpiGbl_ParseOpRoot = NULL;`, but there was one which was missing this. Fixes #841. --- source/common/adisasm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/adisasm.c b/source/common/adisasm.c index 5feb501a7..ccb98bfe0 100644 --- a/source/common/adisasm.c +++ b/source/common/adisasm.c @@ -789,6 +789,7 @@ AdDoExternalFileList ( AcpiDmFinishNamespaceLoad (AcpiGbl_ParseOpRoot, AcpiGbl_RootNode, OwnerId); AcpiPsDeleteParseTree (AcpiGbl_ParseOpRoot); + AcpiGbl_ParseOpRoot = NULL; ExternalListHead = ExternalListHead->Next; } -- cgit v1.2.1