Don't try to free pgpassfile since it's a stack variable.
