sregex icon indicating copy to clipboard operation
sregex copied to clipboard

How to discard ctx

Open encore-zhou opened this issue 9 years ago • 0 comments
trafficstars

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?

encore-zhou avatar Sep 05 '16 06:09 encore-zhou