From 6ede10cf85f3475731a140880f2f26fa55f6a3ea Mon Sep 17 00:00:00 2001 From: jkim Date: Tue, 27 Mar 2012 15:07:35 +0000 Subject: Fix two possible memory leaks in error path. https://github.com/otcshare/acpica/commit/651031314f26bcfa32ee070014c841afa4cee094 Obtained from: ACPICA --- source/components/parser/psargs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/components/parser/psargs.c') diff --git a/source/components/parser/psargs.c b/source/components/parser/psargs.c index 68e4d5d..8140fdb 100644 --- a/source/components/parser/psargs.c +++ b/source/components/parser/psargs.c @@ -672,6 +672,7 @@ AcpiPsGetNextField ( Arg = AcpiPsAllocOp (AML_INT_BYTELIST_OP); if (!Arg) { + AcpiPsFreeOp (Field); return_PTR (NULL); } @@ -717,6 +718,7 @@ AcpiPsGetNextField ( Arg = AcpiPsAllocOp (AML_INT_NAMEPATH_OP); if (!Arg) { + AcpiPsFreeOp (Field); return_PTR (NULL); } -- cgit v1.1