Hi, I think found a memory leak in jp_create, the code is hear: https://github.com/cloudflare/lua-resty-json/blob/547c34da77ab96bcf60a829243179b90b7f30459/parser.c#L290 If mp_create returns null, then jp_create will directly return 0 without free p.
Hi, I think found a memory leak in jp_create, the code is hear:
lua-resty-json/parser.c
Line 290 in 547c34d
If mp_create returns null, then jp_create will directly return 0 without free p.