Skip to content

Commit 261b242

Browse files
committed
Fix segfault by introducing a memory leak
Please remove this as soon as the issue is better understood
1 parent 0a8a8a3 commit 261b242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_regex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ ngx_http_lua_set_jit_stack_size(int size)
25262526

25272527
lmcf = ngx_http_cycle_get_module_main_conf(ngx_cycle,
25282528
ngx_http_lua_module);
2529-
pcre_jit_stack_free(lmcf->jit_stack);
2529+
// pcre_jit_stack_free(lmcf->jit_stack); // Y U NO WORK?
25302530
lmcf->jit_stack = pcre_jit_stack_alloc(NGX_LUA_RE_MIN_JIT_STACK_SIZE,
25312531
size);
25322532
}

0 commit comments

Comments
 (0)