openresty/sregex

How to discard ctx

encore-zhou opened this issue · 0 comments

I try to follow the steps to excute the Pike VM(sre_vm_pike_create_ctx then sre_vm_pike_exec). According to the manual , "Different data streams MUST use different ctx instances", so i create another ctx when i excute with another data stream. This causes a problem that it will lead to running out of the memory when creating ctx frequenty. However , i cannot not find any API to free the ctx.Are there any solutions for this?