aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/linkat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/linkat.c')
-rw-r--r--ports/unix/guts/linkat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ports/unix/guts/linkat.c b/ports/unix/guts/linkat.c
index 9ca7c47..fe29b39 100644
--- a/ports/unix/guts/linkat.c
+++ b/ports/unix/guts/linkat.c
@@ -37,8 +37,6 @@
rc = real_link(oldpath, newpath);
save_errno = errno;
if (rc == -1) {
- free(oldpath);
- free(newpath);
errno = save_errno;
return rc;
}
@@ -53,8 +51,6 @@
if (rc2 == -1) {
pseudo_diag("Fatal: Tried to stat '%s' after linking it, but failed: %s.\n",
oldpath, strerror(errno));
- free(oldpath);
- free(newpath);
errno = ENOENT;
return rc;
}
@@ -67,8 +63,6 @@
*/
pseudo_client_op(OP_LINK, 0, -1, -1, newpath, &buf);
- free(oldpath);
- free(newpath);
errno = save_errno;
/* return rc;