Geert Jansen <geertj@gmail.com>
Alex Gaynor <alex.gaynor@gmail.com>
huxingyi <huxingyi@msn.com>
+Alex Crichton <alex@alexcrichton.com>
-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:
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;
out:
saved_errno = errno;
- {
+ if (dents != NULL) {
for (i = 0; i < n; i++)
free(dents[i]);
free(dents);
#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