mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
MFV: r233551
Fix two possible memory leaks in error path. Obtained from: ACPICA
This commit is contained in:
commit
c708f80e7d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue