windows: fix memory leaks in fs

Also clean up the code in various ways.
This commit is contained in:
Bert Belder 2012-07-30 23:52:22 +02:00
parent 1d5eb91474
commit 514265ec6e
3 changed files with 503 additions and 534 deletions

View File

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

View File

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

File diff suppressed because it is too large Load Diff