]> git.kaiwu.me - njs.git/commit
QuickJS: fix fs callback return value leak
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 30 Oct 2026 01:40:09 +0000 (18:40 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 2 Nov 2026 14:42:35 +0000 (06:42 -0800)
commit592ee994670c6a3ca5db280cc3db7d20a9ccb83a
tree8551befd306d91d1739c694a955735c529a3b447
parent604ba7f9cd1b2ef2115259cb0564d449b37c7e38
QuickJS: fix fs callback return value leak

Previously, the value returned by a callback passed to the callback
flavor of fs functions was never freed.  The value stayed referenced
until the runtime was freed, triggering the
"list_empty(&rt->gc_obj_list)" assertion in JS_FreeRuntime() in debug
builds and accumulating in the runtime with js_context_reuse.

The issue was introduced in 1f8f9992 (0.8.9).
external/qjs_fs_module.c