Skip to content

Commit 913f3fa

Browse files
committed
[MERGE #5786 @nhat-nguyen] Free argObjSyms when clearing BailOutInfo
Merge pull request #5786 from nhat-nguyen:freeArgObjSyms
2 parents d1e2c6a + 1fb2d8e commit 913f3fa

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)