MFV: r233551

Fix two possible memory leaks in error path.

Obtained from:	ACPICA
This commit is contained in:
Jung-uk Kim 2012-03-27 15:27:20 +00:00
commit c708f80e7d

View file

@ -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);
}