Skip to content

Commit e40e42f

Browse files
committed
Add uv_fs_req_cleanup
1 parent 443abbc commit e40e42f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uvwasi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,10 +1448,13 @@ uvwasi_errno_t uvwasi_fd_readdir(uvwasi_t* uvwasi,
14481448
uv_fs_req_cleanup(&req);
14491449
goto exit;
14501450
}
1451+
1452+
cur_cookie += (uvwasi_dircookie_t)r;
1453+
uv_fs_req_cleanup(&req);
1454+
14511455
if (r == 0) {
14521456
break;
14531457
}
1454-
cur_cookie += (uvwasi_dircookie_t)r;
14551458
}
14561459

14571460
/* Read the directory entries into the provided buffer. */

0 commit comments

Comments
 (0)