summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/darwin.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-04-12 00:59:38 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-04-12 00:59:38 +0200
commite9dcfd4bd280fe3e819b2c992f33dad22bb8a967 (patch)
tree2b4748be10afd1640a271b0e7b382784d5feae5f /deps/uv/src/unix/darwin.c
parent3ec84a11f8ce70bde3a480a80cbe0875f8ea08ae (diff)
downloadandroid-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.tar.gz
android-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.tar.bz2
android-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.zip
Revert "deps: upgrade libuv to 3c41597"
This reverts commit 0db4dc0024eaa538bf4913d6bf256a18126de2ba. This commit makes a lot of tests fail due to reference counting errors. It's not worth it to debug because the reference counting scheme is due to change soon anyway.
Diffstat (limited to 'deps/uv/src/unix/darwin.c')
-rw-r--r--deps/uv/src/unix/darwin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/deps/uv/src/unix/darwin.c b/deps/uv/src/unix/darwin.c
index e6deb3017b..6b3705f6fb 100644
--- a/deps/uv/src/unix/darwin.c
+++ b/deps/uv/src/unix/darwin.c
@@ -73,7 +73,6 @@ uint64_t uv_hrtime() {
int uv_exepath(char* buffer, size_t* size) {
uint32_t usize;
int result;
- char* path;
char* fullpath;
if (!buffer || !size) {
@@ -84,11 +83,9 @@ int uv_exepath(char* buffer, size_t* size) {
result = _NSGetExecutablePath(buffer, &usize);
if (result) return result;
- path = (char*)malloc(2 * PATH_MAX);
- fullpath = realpath(buffer, path);
+ fullpath = realpath(buffer, NULL);
if (fullpath == NULL) {
- free(path);
return -1;
}