diff options
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/exec_context.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/exec_context.cc b/cpu/exec_context.cc index 20ab64bc4..06bd741f2 100644 --- a/cpu/exec_context.cc +++ b/cpu/exec_context.cc @@ -118,6 +118,8 @@ ExecContext::serialize(ostream &os) for (int j=0; j<size; ++j) { top = stack->top(); paramOut(os, csprintf("stackpos[%d]",j), top->name); + delete top; + stack->pop(); } } else { SERIALIZE_SCALAR(ctx); |