aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/realpath.c')
-rw-r--r--ports/unix/guts/realpath.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ports/unix/guts/realpath.c b/ports/unix/guts/realpath.c
index 8059f5e..48b2b34 100644
--- a/ports/unix/guts/realpath.c
+++ b/ports/unix/guts/realpath.c
@@ -13,13 +13,11 @@
return NULL;
}
if ((len = strlen(rname)) >= pseudo_sys_path_max()) {
- free(rname);
errno = ENAMETOOLONG;
return NULL;
}
if (resolved_name) {
memcpy(resolved_name, rname, len + 1);
- free(rname);
rc = resolved_name;
} else {
rc = rname;