Commit 6fa560d
src: fix memory leak in WriteBuffers() error path
Pointed out by Coverity. Introduced in commit 05d30d5 from July 2015
("fs: implemented WriteStream#writev").
WriteBuffers() leaked memory in the synchronous uv_fs_write() error path
when trying to write > 1024 buffers.
PR-URL: #7374
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent ce039c3 commit 6fa560dCopy full SHA for 6fa560d
File tree
Expand file treeCollapse file tree
2 files changed
+19
-20
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+19
-20
lines changedOpen diff view settings
Collapse file
+5-20Lines changed: 5 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1079 | 1079 | |
1080 | 1080 | |
1081 | 1081 | |
1082 | | - |
| 1082 | + |
1083 | 1083 | |
1084 | | - |
1085 | | - |
1086 | | - |
1087 | | - |
1088 | | - |
1089 | | - |
1090 | | - |
1091 | | - |
1092 | | - |
| 1084 | + |
1093 | 1085 | |
1094 | 1086 | |
1095 | | - |
1096 | | - |
1097 | | - |
| 1087 | + |
1098 | 1088 | |
1099 | | - |
1100 | 1089 | |
1101 | 1090 | |
1102 | 1091 | |
1103 | 1092 | |
1104 | 1093 | |
1105 | | - |
1106 | | - |
1107 | | - |
| 1094 | + |
1108 | 1095 | |
1109 | 1096 | |
1110 | 1097 | |
1111 | | - |
1112 | | - |
1113 | | - |
| 1098 | + |
1114 | 1099 | |
1115 | 1100 | |
1116 | 1101 | |
|
Collapse file
+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
231 | 231 | |
232 | 232 | |
233 | 233 | |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
234 | 244 | |
235 | 245 | |
236 | 246 | |
| ||
282 | 292 | |
283 | 293 | |
284 | 294 | |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
285 | 299 | |
286 | 300 | |
287 | 301 | |
|
0 commit comments