Skip to content

Commit

Permalink
uv: Upgrade to v0.10.21
Browse files Browse the repository at this point in the history
  • Loading branch information
tjfontaine committed Dec 18, 2013
1 parent 2eaef9f commit 9371be0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions deps/uv/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,4 @@ Chris Bank <[email protected]>
Geert Jansen <[email protected]>
Alex Gaynor <[email protected]>
huxingyi <[email protected]>
Alex Crichton <[email protected]>
9 changes: 8 additions & 1 deletion deps/uv/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
2013.12.13, Version 0.10.20 (Stable)
2013.12.19, Version 0.10.21 (Stable)

Changes since version 0.10.20:

* unix: fix a possible memory leak in uv_fs_readdir (Alex Crichton)


2013.12.13, Version 0.10.20 (Stable), 04141464dd0fba90ace9aa6f7003ce139b888a40

Changes since version 0.10.19:

Expand Down
7 changes: 5 additions & 2 deletions deps/uv/src/unix/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,12 @@ static ssize_t uv__fs_readdir(uv_fs_t* req) {
int i;
int n;

dents = NULL;
n = scandir(req->path, &dents, uv__fs_readdir_filter, alphasort);

if (n == -1 || n == 0)
if (n == 0)
goto out; /* osx still needs to deallocate some memory */
else if (n == -1)
return n;

len = 0;
Expand Down Expand Up @@ -232,7 +235,7 @@ static ssize_t uv__fs_readdir(uv_fs_t* req) {

out:
saved_errno = errno;
{
if (dents != NULL) {
for (i = 0; i < n; i++)
free(dents[i]);
free(dents);
Expand Down
2 changes: 1 addition & 1 deletion deps/uv/src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#define UV_VERSION_MAJOR 0
#define UV_VERSION_MINOR 10
#define UV_VERSION_PATCH 20
#define UV_VERSION_PATCH 21
#define UV_VERSION_IS_RELEASE 1


Expand Down

0 comments on commit 9371be0

Please sign in to comment.