Avoid leaking fds when running daemonized

We were creating tempfiles with fd, but not using it afterwards. This
caused a leaked fd on each projects.list write.

Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
1 file changed