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:
Ryan Liptak 2019-10-09 00:01:19 -07:00 committed by cjihrig
parent fd2ce38dd6
commit 076df64dbb
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -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);
} }