diff options
author | falsandtru <falsandtru@users.noreply.github.com> | 2022-09-07 12:33:10 +0300 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-10-11 22:45:22 +0300 |
commit | a021f1974a912431930d50b80027f12fae8a752a (patch) | |
tree | 03128cfb84c2e17c1e37c9e0618b3a50c84923d5 /lib | |
parent | 916b319e7ac10b1a4248f756abe55cbc83679daa (diff) |
lib: fix reference leak
PR-URL: https://github.com/nodejs/node/pull/44499
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/fixed_queue.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/fixed_queue.js b/lib/internal/fixed_queue.js index f6f3110d8ec..4019d6e6dc4 100644 --- a/lib/internal/fixed_queue.js +++ b/lib/internal/fixed_queue.js @@ -111,6 +111,7 @@ module.exports = class FixedQueue { if (tail.isEmpty() && tail.next !== null) { // If there is another queue, it forms the new tail. this.tail = tail.next; + tail.next = null; } return next; } |