Skip to content

Commit 6afdfc8

Browse files
authored
Merge pull request #50 from vadv/scr-oath-patch-1
Show the pattern of closing the state
2 parents ec340ee + 6ec8a77 commit 6afdfc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ var (
8484
func main() {
8585
flag.Parse()
8686
state := lua.NewState()
87+
defer state.Close()
8788
libs.Preload(state)
8889
if *exec != `` {
8990
if err := state.DoFile(*exec); err != nil {

0 commit comments

Comments
 (0)