diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-03-27 15:07:35 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-03-27 15:07:35 +0000 |
commit | 61c32fdb54052517b633b266693ff440a777c9d1 (patch) | |
tree | 00f7f00e0c60388d61578170f50e9f350da900d4 | |
parent | 89747a66c53366a232361dc21ec93a1813a29595 (diff) | |
download | src-61c32fdb54052517b633b266693ff440a777c9d1.tar.gz src-61c32fdb54052517b633b266693ff440a777c9d1.zip |
Fix two possible memory leaks in error path.
https://github.com/otcshare/acpica/commit/651031314f26bcfa32ee070014c841afa4cee094
Obtained from: ACPICA
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=233551
-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 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); } |