Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix memory leak in node_zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jan 10, 2012
1 parent e6a30bd commit 2d8af39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_zlib.cc
Expand Up @@ -125,7 +125,7 @@ template <node_zlib_mode mode> 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(),
Expand Down

0 comments on commit 2d8af39

Please sign in to comment.