Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

windows: fix memory leaks in fs

Also clean up the code in various ways.
  • Loading branch information...
piscisaureus committed Jul 30, 2012
1 parent 1d5eb91 commit 514265ec6ec79365f8e691b6a02ed9bb6ae128cd
Showing with 503 additions and 534 deletions.
  1. +5 −4 include/uv-private/uv-win.h
  2. +2 −2 include/uv.h
  3. +496 −528 src/win/fs.c
@@ -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
};

0 comments on commit 514265e

Please sign in to comment.
You can’t perform that action at this time.