Skip to content

Commit e30db28

Browse files
committed
Delete previous stack of previous stack
1 parent e81c237 commit e30db28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

record_api/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ def __post_init__(self):
305305
self.op_stack = get_stack.OpStack(self.frame)
306306
self.opcode = self.frame.f_code.co_code[self.frame.f_lasti]
307307

308+
if self.previous_stack and self.previous_stack.previous_stack:
309+
del self.previous_stack.previous_stack
310+
308311
@property
309312
def oparg(self):
310313
# sort of replicates logic in dis._unpack_opargs but doesn't account for extended

0 commit comments

Comments
 (0)