X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/798eaea47848edd5ab821972ba8fa7ed8cbf6f06..46201ce0f8708c098cb4bcd3d42d7a6f7b5eb3e6:/openssh/misc.c diff --git a/openssh/misc.c b/openssh/misc.c index 83efded..c447d23 100644 --- a/openssh/misc.c +++ b/openssh/misc.c @@ -237,6 +237,20 @@ pwcopy(struct passwd *pw) return copy; } +void +pwfree(struct passwd *pw) +{ + xfree(pw->pw_name); + xfree(pw->pw_passwd); + xfree(pw->pw_gecos); +#ifdef HAVE_PW_CLASS_IN_PASSWD + xfree(pw->pw_class); +#endif + xfree(pw->pw_dir); + xfree(pw->pw_shell); + xfree(pw); +} + /* * Convert ASCII string to TCP/IP port number. * Port must be >=0 and <=65535.