Commit 528d8786 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: fix memory leak in fs.writeSync error path

The SYNC_CALL macro returns on error, bypassing the delete[] call.

Mea culpa, it looks like I introduced this memory leak back in 2013,
in commit d2b80b8a ("src: clean up FSReqWrap").

PR-URL: https://github.com/iojs/io.js/pull/1092


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 648fc63c
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