windows: fix memory leaks in fs
Also clean up the code in various ways.
This commit is contained in:
parent
1d5eb91474
commit
514265ec6e
@ -470,15 +470,16 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
|
||||
int flags; \
|
||||
DWORD sys_errno_; \
|
||||
union { \
|
||||
wchar_t* pathw; \
|
||||
int file; \
|
||||
/* TODO: remove me in 0.9. */ \
|
||||
WCHAR* pathw; \
|
||||
int fd; \
|
||||
}; \
|
||||
union { \
|
||||
struct { \
|
||||
int mode; \
|
||||
wchar_t* new_pathw; \
|
||||
WCHAR* new_pathw; \
|
||||
int file_flags; \
|
||||
int file_out; \
|
||||
int fd_out; \
|
||||
void* buf; \
|
||||
size_t length; \
|
||||
int64_t offset; \
|
||||
|
||||
@ -1410,8 +1410,8 @@ struct uv_fs_s {
|
||||
uv_fs_cb cb;
|
||||
ssize_t result;
|
||||
void* ptr;
|
||||
char* path;
|
||||
int errorno;
|
||||
const char* path;
|
||||
uv_err_code errorno;
|
||||
UV_FS_PRIVATE_FIELDS
|
||||
};
|
||||
|
||||
|
||||
1024
src/win/fs.c
1024
src/win/fs.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user