diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-09-11 21:38:09 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-09-11 21:38:09 +0000 |
commit | 754171ae60abbbd707ed8d449f07ef38f596bd22 (patch) | |
tree | 67d2b76905535d056ba6911186285d0325dc703f /source/compiler/aslmain.c | |
parent | e599b42ef5047e5546af949d87d2cfd2e17062b0 (diff) |
Notes
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 3034281b3dcfc..25dca949054af 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); } |