{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/6034","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/6034/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/6034/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/6034/events","html_url":"https://github.com/nodejs/node/issues/6034","id":145623242,"number":6034,"title":"Zlib InflateRaw null reference","user":{"login":"headlessme","id":4320942,"avatar_url":"https://avatars.githubusercontent.com/u/4320942?v=3","gravatar_id":"","url":"https://api.github.com/users/headlessme","html_url":"https://github.com/headlessme","followers_url":"https://api.github.com/users/headlessme/followers","following_url":"https://api.github.com/users/headlessme/following{/other_user}","gists_url":"https://api.github.com/users/headlessme/gists{/gist_id}","starred_url":"https://api.github.com/users/headlessme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headlessme/subscriptions","organizations_url":"https://api.github.com/users/headlessme/orgs","repos_url":"https://api.github.com/users/headlessme/repos","events_url":"https://api.github.com/users/headlessme/events{/privacy}","received_events_url":"https://api.github.com/users/headlessme/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-04T08:54:41Z","updated_at":"2016-04-04T09:02:03Z","closed_at":"2016-04-04T09:02:03Z","body":"* **Version**: v5.10.0 (also seen on 4.3.0)\r\n* **Platform**: Darwin Kernel Version 14.5.0\r\n* **Subsystem**: zlib\r\n\r\nZlib references a null object on close after an error:\r\n\r\n```js\r\nvar zlib = require('zlib');\r\nvar inflate = zlib.createInflateRaw(15);\r\ninflate.on('error', function(e) {  });\r\ninflate.write('something invalid');\r\nsetTimeout(function(){\r\n    inflate.close();  \r\n}, 100);\r\n```\r\n\r\nOutput:\r\n```\r\n$ node inflate-close.js \r\nzlib.js:465\r\n  this._handle.close();\r\n              ^\r\n\r\nTypeError: Cannot read property 'close' of null\r\n    at InflateRaw.Zlib.close (zlib.js:465:15)\r\n    at null._onTimeout (/tmp/inflate-close.js:8:13)\r\n    at Timer.listOnTimeout (timers.js:92:15)\r\n```\r\n\r\nSee websockets/ws#664\r\n"}}