summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorGabriel Marcano <gabemarcano@yahoo.com>2023-02-17 16:00:57 -0800
committerGabriel Marcano <gabemarcano@yahoo.com>2023-02-17 16:00:57 -0800
commit336fdaf54c7b95d51eaf1bed4cf5463b0d5668ec (patch)
tree536fe2e16ca59f0b51bc82f133c2a1afc7a965b1 /source
parentc9e01891e1382afcaee24018c99a18e4db076f10 (diff)
downloadacpica-336fdaf54c7b95d51eaf1bed4cf5463b0d5668ec.tar.gz
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.
Diffstat (limited to 'source')
-rw-r--r--source/common/adisasm.c1
1 files changed, 1 insertions, 0 deletions
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;
}