summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/replace.c2
-rw-r--r--daemon.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/builtin/replace.c b/builtin/replace.c
index 8507835d39..eb1d2ec5e5 100644
--- a/builtin/replace.c
+++ b/builtin/replace.c
@@ -207,8 +207,6 @@ static void export_object(const unsigned char *sha1, const char *filename)
if (run_command(&cmd))
die("cat-file reported failure");
-
- close(fd);
}
/*
diff --git a/daemon.c b/daemon.c
index eba1255684..a2701af2fc 100644
--- a/daemon.c
+++ b/daemon.c
@@ -783,7 +783,6 @@ static void handle(int incoming, struct sockaddr *addr, socklen_t addrlen)
logerror("unable to fork");
else
add_child(&cld, addr, addrlen);
- close(incoming);
}
static void child_handler(int signo)