diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 66a6a476a7c7b2..96c0376f895bbc 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -480,6 +480,7 @@ class ZCtx : public AsyncWrap { delete[] dictionary; ctx->dictionary_ = nullptr; } + ctx->mode_ = NONE; ctx->env()->ThrowError("Init error"); } }