win: fix uv_statfs_t leak in uv_fs_statfs()
PR-URL: https://github.com/libuv/libuv/pull/2505 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
fd2ce38dd6
commit
076df64dbb
@ -2575,6 +2575,7 @@ static void fs__statfs(uv_fs_t* req) {
|
|||||||
stat_fs->f_files = 0;
|
stat_fs->f_files = 0;
|
||||||
stat_fs->f_ffree = 0;
|
stat_fs->f_ffree = 0;
|
||||||
req->ptr = stat_fs;
|
req->ptr = stat_fs;
|
||||||
|
req->flags |= UV_FS_FREE_PTR;
|
||||||
SET_REQ_RESULT(req, 0);
|
SET_REQ_RESULT(req, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user