test: fix memory leak in test-fs.c

This commit is contained in:
Ben Noordhuis 2012-10-02 23:10:59 +02:00
parent b37a0f5bb3
commit e474a2a420

View File

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