Skip to content

Commit 1fb2d8e

Browse files
committed
Free argObjSyms when clearing BailOutInfo
1 parent e2a9c77 commit 1fb2d8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/Backend/BailOut.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ BailOutInfo::Clear(JitArenaAllocator * allocator)
2222
{
2323
this->capturedValues->constantValues.Clear(allocator);
2424
this->capturedValues->copyPropSyms.Clear(allocator);
25+
26+
if (this->capturedValues->argObjSyms)
27+
{
28+
JitAdelete(allocator, this->capturedValues->argObjSyms);
29+
}
30+
2531
JitAdelete(allocator, this->capturedValues);
2632
}
2733
this->usedCapturedValues.constantValues.Clear(allocator);

0 commit comments

Comments
 (0)