Skip to content

Possible memory leak on FFI call #675

Closed
@dev-null-undefined

Description

@dev-null-undefined

If I am not mistaking the FFI function ngx_http_wasm_ffi_plan_new leaks the plan struct memory as it is allocated in the VM pool and then the pointer is never deallocated.

Allocated in this function here https://github.com/Kong/ngx_wasm_module/blob/main/src/common/lua/ngx_wasm_lua_ffi.c#L48.
And never deallocated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ffiArea: LuaJIT FFIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions