diff options
author | jkim <jkim@FreeBSD.org> | 2012-03-27 15:27:20 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-03-27 15:27:20 +0000 |
commit | debd8ef5e56f768251970defac8dc87438528425 (patch) | |
tree | d934b6431d9693140a5a700fa9adaa8689e52f42 | |
parent | cf4757b460fed910ee19bfa3bf5c18ae1975ebfa (diff) | |
download | FreeBSD-src-debd8ef5e56f768251970defac8dc87438528425.zip FreeBSD-src-debd8ef5e56f768251970defac8dc87438528425.tar.gz |
MFV: r233551
Fix two possible memory leaks in error path.
Obtained from: ACPICA
-rw-r--r-- | sys/contrib/dev/acpica/components/parser/psargs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/dev/acpica/components/parser/psargs.c b/sys/contrib/dev/acpica/components/parser/psargs.c index f3f7015..e0a18f6 100644 --- a/sys/contrib/dev/acpica/components/parser/psargs.c +++ b/sys/contrib/dev/acpica/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); } |