]> git.kaiwu.me - njs.git/commit
QuickJS: free joined string with chain pool in qjs_string_create_chb()
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 30 Oct 2026 03:14:34 +0000 (20:14 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 2 Nov 2026 14:42:35 +0000 (06:42 -0800)
commitcb97e2602f7f3b38b2c54d13c25d400dd5fc08bf
tree4f363c870846f40f538a897695a7527a09341592
parent592ee994670c6a3ca5db280cc3db7d20a9ccb83a
QuickJS: free joined string with chain pool in qjs_string_create_chb()

Previously, the joined string was freed with the JSContext passed as
the pool argument of the chain free function.  This only worked for
chains initialized with NJS_CHB_CTX_INIT(), where the pool is the
context itself.

Now, the chain pool is used, so the function works with chains using
any allocator.  No functional changes for existing callers.
src/qjs.c