We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443abbc commit e40e42fCopy full SHA for e40e42f
src/uvwasi.c
@@ -1448,10 +1448,13 @@ uvwasi_errno_t uvwasi_fd_readdir(uvwasi_t* uvwasi,
1448
uv_fs_req_cleanup(&req);
1449
goto exit;
1450
}
1451
+
1452
+ cur_cookie += (uvwasi_dircookie_t)r;
1453
+ uv_fs_req_cleanup(&req);
1454
1455
if (r == 0) {
1456
break;
1457
- cur_cookie += (uvwasi_dircookie_t)r;
1458
1459
1460
/* Read the directory entries into the provided buffer. */
0 commit comments