We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8fbcf commit 86cf76eCopy full SHA for 86cf76e
src/ngx_stream_lua_regex.c
@@ -511,6 +511,11 @@ ngx_stream_lua_regex_cleanup(void *data)
511
512
if (ngx_regex_compile_context) {
513
old_pool = ngx_stream_lua_pcre_malloc_init(NULL);
514
+ if (ngx_regex_match_context != NULL) {
515
+ pcre2_match_context_free(ngx_regex_match_context);
516
+ ngx_regex_match_context = NULL;
517
+ }
518
+
519
pcre2_compile_context_free(ngx_regex_compile_context);
520
ngx_regex_compile_context = NULL;
521
ngx_stream_lua_pcre_malloc_done(old_pool);
0 commit comments