test: fix memory leak in test-fs.c
This commit is contained in:
parent
b37a0f5bb3
commit
e474a2a420
@ -1641,6 +1641,7 @@ TEST_IMPL(fs_readdir_file) {
|
||||
r = uv_fs_readdir(loop, &readdir_req, path, 0, NULL);
|
||||
ASSERT(r == -1);
|
||||
ASSERT(uv_last_error(loop).code == UV_ENOTDIR);
|
||||
uv_fs_req_cleanup(&readdir_req);
|
||||
|
||||
r = uv_fs_readdir(loop, &readdir_req, path, 0, file_readdir_cb);
|
||||
ASSERT(r == 0);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user