diff --git a/lib/http.js b/lib/http.js index 3986709c2af..9aaff7f3d1f 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1128,6 +1128,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; } };