From 0a414f4caad3430b4d73a69f54345245e1fad016 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 1 May 2012 15:25:59 -0700 Subject: [PATCH] http: Remove socket ondata/onend in parser cleanup --- lib/http.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/http.js b/lib/http.js index be2af549d9..05de4c084c 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1256,6 +1256,9 @@ ClientRequest.prototype.onSocket = function(socket) { var freeParser = function() { if (parser) { parsers.free(parser); + parser.socket.onend = null; + parser.socket.ondata = null; + parser.socket = null; parser = null; } };