Skip to content

Create coroutine memory leak #512

@starzc-galaxy

Description

@starzc-galaxy

GopherLua V1.1.1
GO V1.20.14 windows/amd64

co, _ := L.NewThread()
fn := L.GetGlobal("XXXXX").(*lua.LFunction) /* get function from lua */
L.Resume(co, fn)

When I repeatedly call this code, the memory keeps increasing!
How to solve the memory leak?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions