We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81805d1 commit fd984a7Copy full SHA for fd984a7
lib/protocol/sequences/Sequence.js
@@ -55,6 +55,13 @@ Sequence.prototype.end = function(err) {
55
this._addLongStackTrace(err);
56
}
57
58
+ // Without this we are leaking memory. This problem was introduced in
59
+ // 8189925374e7ce3819bbe88b64c7b15abac96b16. I suspect that the error object
60
+ // causes a cyclic reference that the GC does not detect properly, but I was
61
+ // unable to produce a standalone version of this leak. This would be a great
62
+ // challenge for somebody interested in difficult problems : )!
63
+ delete this._callSite;
64
+
65
// try...finally for exception safety
66
try {
67
if (err) {
0 commit comments