summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-03-27 15:27:20 +0000
committerjkim <jkim@FreeBSD.org>2012-03-27 15:27:20 +0000
commitdebd8ef5e56f768251970defac8dc87438528425 (patch)
treed934b6431d9693140a5a700fa9adaa8689e52f42
parentcf4757b460fed910ee19bfa3bf5c18ae1975ebfa (diff)
downloadFreeBSD-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.c2
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);
}
OpenPOWER on IntegriCloud