summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-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 b3073fcd1..beba57b29 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;
}