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