Commit 3eea551
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 23797eb commit 3eea551Copy full SHA for 3eea551
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 |
|---|---|---|
| ||
930 | 930 | |
931 | 931 | |
932 | 932 | |
933 | | - |
| 933 | + |
934 | 934 | |
935 | | - |
936 | | - |
937 | | - |
938 | | - |
939 | | - |
940 | | - |
941 | | - |
942 | | - |
943 | | - |
| 935 | + |
944 | 936 | |
945 | 937 | |
946 | | - |
947 | | - |
948 | | - |
| 938 | + |
949 | 939 | |
950 | | - |
951 | 940 | |
952 | 941 | |
953 | 942 | |
954 | 943 | |
955 | 944 | |
956 | | - |
957 | | - |
958 | | - |
| 945 | + |
959 | 946 | |
960 | 947 | |
961 | 948 | |
962 | | - |
963 | | - |
964 | | - |
| 949 | + |
965 | 950 | |
966 | 951 | |
967 | 952 | |
|
Collapse file
+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
212 | 212 | |
213 | 213 | |
214 | 214 | |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
215 | 225 | |
216 | 226 | |
217 | 227 | |
| ||
263 | 273 | |
264 | 274 | |
265 | 275 | |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
266 | 280 | |
267 | 281 | |
268 | 282 | |
|
0 commit comments