View | Details | Raw Unified | Return to bug 237064
Collapse All | Expand All

(-)usr.sbin/pw/pw_vpw.c (+10 lines)
Lines 46-51 static const char rcsid[] = Link Here
46
static FILE * pwd_fp = NULL;
46
static FILE * pwd_fp = NULL;
47
static int pwd_scanflag;
47
static int pwd_scanflag;
48
static const char *pwd_filename;
48
static const char *pwd_filename;
49
static struct password *pw_last = NULL;
50
static struct group *gr_last = NULL;
49
51
50
void
52
void
51
vendpwent(void)
53
vendpwent(void)
Lines 113-118 vnextpwent(char const *nam, uid_t uid, int doclose) Link Here
113
	}
115
	}
114
	free(line);
116
	free(line);
115
117
118
	if (pw_last != NULL)
119
		free(pw_last);
120
	pw_last = pw;
121
116
	return (pw);
122
	return (pw);
117
}
123
}
118
124
Lines 192-197 vnextgrent(char const *nam, gid_t gid, int doclose) Link Here
192
	}
198
	}
193
	free(line);
199
	free(line);
194
200
201
	if (gr_last != NULL)
202
		free(gr_last);
203
        gr_last = gr;
204
195
	return (gr);
205
	return (gr);
196
}
206
}
197
207

Return to bug 237064