diff options
author | jkim <jkim@FreeBSD.org> | 2014-09-11 21:38:09 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2014-09-11 21:38:09 +0000 |
commit | 9f91b0b83a53651519b3bbe3b8c1f2a324da984e (patch) | |
tree | 67d2b76905535d056ba6911186285d0325dc703f /source/compiler/aslmain.c | |
parent | b4cfb84e01b0a37b535b69118259bb16e9614b0f (diff) | |
download | FreeBSD-src-9f91b0b83a53651519b3bbe3b8c1f2a324da984e.zip FreeBSD-src-9f91b0b83a53651519b3bbe3b8c1f2a324da984e.tar.gz |
Import ACPICA 20140828.
Diffstat (limited to 'source/compiler/aslmain.c')
-rw-r--r-- | source/compiler/aslmain.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/compiler/aslmain.c b/source/compiler/aslmain.c index 3034281..25dca94 100644 --- a/source/compiler/aslmain.c +++ b/source/compiler/aslmain.c @@ -327,6 +327,7 @@ main ( ACPI_STATUS Status; int Index1; int Index2; + int ReturnStatus = 0; /* @@ -392,16 +393,24 @@ main ( Status = AslDoOneFile (argv[Index2]); if (ACPI_FAILURE (Status)) { - return (-1); + ReturnStatus = -1; + goto CleanupAndExit; } Index2++; } + +CleanupAndExit: + + UtFreeLineBuffers (); + + AslParserCleanup (); + if (AcpiGbl_ExternalFileList) { AcpiDmClearExternalFileList(); } - return (0); + return (ReturnStatus); } |