From 526d99544ba42a5a2155021975b3b97da425819e Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 17 Feb 2014 17:10:41 +0000 Subject: Import ACPICA 20140214. --- source/compiler/prmacros.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'source/compiler/prmacros.c') diff --git a/source/compiler/prmacros.c b/source/compiler/prmacros.c index 7c5f731e14f55..63bde607cf1be 100644 --- a/source/compiler/prmacros.c +++ b/source/compiler/prmacros.c @@ -360,7 +360,7 @@ PrAddMacro ( if (ArgCount >= PR_MAX_MACRO_ARGS) { PrError (ASL_ERROR, ASL_MSG_TOO_MANY_ARGUMENTS, TokenOffset); - return; + goto ErrorExit; } } @@ -400,7 +400,7 @@ PrAddMacro ( PrError (ASL_ERROR, ASL_MSG_TOO_MANY_ARGUMENTS, THIS_TOKEN_OFFSET (Token)); - return; + goto ErrorExit; } break; } @@ -432,7 +432,7 @@ AddMacroToList: THIS_TOKEN_OFFSET (Name)); } - return; + goto ErrorExit; } DbgPrint (ASL_DEBUG_OUTPUT, PR_PREFIX_ID @@ -451,6 +451,13 @@ AddMacroToList: DefineInfo->Args = Args; DefineInfo->ArgCount = ArgCount; } + + return; + + +ErrorExit: + ACPI_FREE (Args); + return; } -- cgit v1.2.3