diff options
author | jkim <jkim@FreeBSD.org> | 2012-03-27 15:07:35 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-03-27 15:07:35 +0000 |
commit | 6ede10cf85f3475731a140880f2f26fa55f6a3ea (patch) | |
tree | 00f7f00e0c60388d61578170f50e9f350da900d4 /source/components | |
parent | fced62bb2717a14e9e21192cb9884a81ed1b2ffd (diff) | |
download | FreeBSD-src-6ede10cf85f3475731a140880f2f26fa55f6a3ea.zip FreeBSD-src-6ede10cf85f3475731a140880f2f26fa55f6a3ea.tar.gz |
Fix two possible memory leaks in error path.
https://github.com/otcshare/acpica/commit/651031314f26bcfa32ee070014c841afa4cee094
Obtained from: ACPICA
Diffstat (limited to 'source/components')
-rw-r--r-- | source/components/parser/psargs.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |