for_each_reflog_ent: do not leak FILE *