Commit 528d878
committed
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 d2b80b8 ("src: clean up FSReqWrap").
PR-URL: #1092
Reviewed-By: Fedor Indutny <[email protected]>1 parent 648fc63 commit 528d878
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
856 | 863 | | |
857 | | - | |
858 | | - | |
859 | 864 | | |
860 | 865 | | |
861 | 866 | | |
| |||
0 commit comments