Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc(*) remove from
ngx_wasm_lua_resolver_resolve
call freeing 'rsl…
…v_ctx' Presently the behavior of `ngx_wasm_lua_resolver_resolve` mimics the one from ngx_resolve_name, which frees its argument 'rslv_ctx' in case of any errors. This commit changes `ngx_wasm_lua_resolver_resolve` to not free 'rslv_ctx' if any errors occur, delegating the responsibility to its caller. Although it makes `ngx_wasm_lua_resolver_resolve` less consistent with ngx_resolve_name, this change allows the upcoming logic exposing `ngx_wasm_lua_resolver_resolve` as a PW foreign-function to allocate 'rslv_ctx' using memory from the pwexec's pool, instead of from malloc.
- Loading branch information