Commit bff9bcdd authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Rod Vagg
Browse files

src: plug memory leaks

In a few places dynamic memory was passed to the Buffer::New() overload
that makes a copy of the input, not the one that takes ownership.

This commit is a band-aid to fix the memory leaks.  Longer term, we
should look into using C++11 move semantics more effectively.

Fixes: https://github.com/nodejs/node/issues/2308
PR-URL: https://github.com/nodejs/node/pull/2352


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 1f12e032
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment