Fixed a file descriptor leak in pinentry_fork().