]> git.kaiwu.me - njs.git/commit
Modules: initialize shared dict state file before allocation
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 9 Oct 2026 22:59:52 +0000 (15:59 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 15 Oct 2026 01:49:05 +0000 (18:49 -0700)
commitb543510147bc56166dc76bd583193dee34db7ac2
treea85dfde2645ed140c0bf148b463ad5f506f1bb2c
parent9a074ab066c2c7de5a0d1bec36ce676c3c2354a6
Modules: initialize shared dict state file before allocation

Initialize the state file descriptor before allocating chain links and
buffers.  Allocation failures otherwise reach cleanup with an
uninitialized descriptor and may close an unrelated file.
nginx/ngx_js_shared_dict.c