Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfalsandtru <falsandtru@users.noreply.github.com>2022-09-07 12:33:10 +0300
committerJuan José Arboleda <soyjuanarbol@gmail.com>2022-10-11 22:45:22 +0300
commita021f1974a912431930d50b80027f12fae8a752a (patch)
tree03128cfb84c2e17c1e37c9e0618b3a50c84923d5 /lib
parent916b319e7ac10b1a4248f756abe55cbc83679daa (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.js1
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;
}