daemon: Fix leak of string in make_pidfile().