Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: fix memory leaks in fs
Browse files Browse the repository at this point in the history
Also clean up the code in various ways.
  • Loading branch information
piscisaureus committed Jul 30, 2012
1 parent 1d5eb91 commit 514265e
Show file tree
Hide file tree
Showing 3 changed files with 503 additions and 534 deletions.
9 changes: 5 additions & 4 deletions include/uv-private/uv-win.h
Expand Up @@ -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; \
Expand Down
4 changes: 2 additions & 2 deletions include/uv.h
Expand Up @@ -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
};

Expand Down

0 comments on commit 514265e

Please sign in to comment.