core/vm: push leftover stack items after execution, not before

This commit is contained in:
Péter Szilágyi 2018-07-03 12:07:10 +03:00 committed by GitHub
parent 91016a7f6a
commit 078ff10b64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err er
contract.Input = input contract.Input = input
// Reclaim the stack as an int pool when the execution stops // Reclaim the stack as an int pool when the execution stops
defer in.intPool.put(stack.data...) defer func() { in.intPool.put(stack.data...) }()
if in.cfg.Debug { if in.cfg.Debug {
defer func() { defer func() {