From 2d8af39accc6e1a863aa60ed80289508f3df50e8 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 10 Jan 2012 20:51:45 +0100 Subject: [PATCH] Fix memory leak in node_zlib --- src/node_zlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 7c07ef3949e..952fc26788b 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -125,7 +125,7 @@ template class ZCtx : public ObjectWrap { ctx->chunk_size_ = out_len; // build up the work request - uv_work_t* work_req = new uv_work_t(); + uv_work_t* work_req = &req_wrap->req_; work_req->data = req_wrap; uv_queue_work(uv_default_loop(),