to memory that is freed and then referenced again)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7501
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Feb 15 12:31:03 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * kinit.c (main): Do not free memory until all done using it.
+
Tue Sep 26 22:19:32 1995 Mark Eichin <eichin@cygnus.com>
* kinit.c (KRB5_DEFAULT_LIFE): default life should be 10 hours,
#endif
}
- krb5_free_principal(kcontext, server);
-
if (code) {
if (code == KRB5KRB_AP_ERR_BAD_INTEGRITY)
fprintf (stderr, "%s: Password incorrect\n", argv[0]);
exit(1);
}
+ /* my_creds is pointing at server */
+ krb5_free_principal(kcontext, server);
+
+ krb5_free_context(kcontext);
+
exit(0);
}