summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2023-03-22 13:03:49 -0700
committerGitHub <noreply@github.com>2023-03-22 13:03:49 -0700
commit9d7eb6a56929b9bda90b52d59f51741602e3ba57 (patch)
treeae371459b5d0033f325b2f928a907ebe6042ad47
parent51aff5169e12cfef9dc8f59f5bc827c21e0e6d3a (diff)
parent336fdaf54c7b95d51eaf1bed4cf5463b0d5668ec (diff)
downloadacpica-9d7eb6a56929b9bda90b52d59f51741602e3ba57.tar.gz
Merge pull request #842 from gemarcano/fix_AcpiGbl_ParseOpRoot
iasl: Set AcpiGbl_ParseOpRoot to NULL when freed
-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;
}