aboutsummaryrefslogtreecommitdiffstats
path: root/source/components
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-03-27 15:07:35 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-03-27 15:07:35 +0000
commit61c32fdb54052517b633b266693ff440a777c9d1 (patch)
tree00f7f00e0c60388d61578170f50e9f350da900d4 /source/components
parent89747a66c53366a232361dc21ec93a1813a29595 (diff)
downloadsrc-61c32fdb54052517b633b266693ff440a777c9d1.tar.gz
src-61c32fdb54052517b633b266693ff440a777c9d1.zip
Fix two possible memory leaks in error path.
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=233551
Diffstat (limited to 'source/components')
-rw-r--r--source/components/parser/psargs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/components/parser/psargs.c b/source/components/parser/psargs.c
index 68e4d5d21042..8140fdbb9d0e 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);
}