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; } };