aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/interpreter.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/interpreter.go')
-rw-r--r--core/vm/interpreter.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 805839395..b5e35f1a4 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -186,7 +186,10 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
contract.Input = input
// Reclaim the stack as an int pool when the execution stops
- defer func() { in.intPool.put(stack.data...) }()
+ defer func() {
+ in.intPool.put(stack.data...)
+ recyclestack(stack)
+ }()
if in.cfg.Debug {
defer func() {