summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/server.c b/src/util/server.c
index b3073fcd..beba57b2 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -221,6 +221,7 @@ int pidfile(const char *path, const char *name)
err = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
("write failed [%d][%s]\n", err, strerror(err)));
+ close(fd);
return err;
}