http: Remove socket ondata/onend in parser cleanup

This commit is contained in:
isaacs 2012-05-01 15:25:59 -07:00
parent 9164fa6aaa
commit 0a414f4caa

View File

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