diff --git a/contract/lstate_factory.go b/contract/lstate_factory.go index a35f28091..f202b9e13 100644 --- a/contract/lstate_factory.go +++ b/contract/lstate_factory.go @@ -76,7 +76,7 @@ func newLState() *LState { return C.vm_newstate(C.int(currentForkVersion)) } -func (L *LState) close() { +func closeLState(L *LState) { if L != nil { C.lua_close(L) }