checking for memory leaks.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16353
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-05-24 Ezra Peisach <epeisach@mit.edu>
+
+ * krsh.c (main): Invoke krb5_free_context at exit.
+
2004-02-24 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (kshd, klogind): Link against apputils lib.
int argc;
char **argv0;
{
- int rem, pid;
+ int rem, pid = 0;
char *host=0, *cp, **ap, buf[RCMD_BUFSIZ], *args, **argv = argv0, *user = 0;
register int cc;
struct passwd *pwd;
goto rewrite;
done:
(void) shutdown(rem, 1);
+#ifdef KERBEROS
+ krb5_free_context(bsd_context);
+#endif
exit(0);
}
#ifdef POSIX_SIGNALS
} while (FD_ISSET(rem, &readfrom) || FD_ISSET(rfd2, &readfrom));
if (nflag == 0)
(void) kill(pid, SIGKILL);
+#ifdef KERBEROS
+ krb5_free_context(bsd_context);
+#endif
exit(0);
usage:
fprintf(stderr,