From: Ken Raeburn Date: Wed, 1 Sep 1999 21:15:34 +0000 (+0000) Subject: From 1.1 branch: X-Git-Tag: krb5-1.2-beta1~256 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2476913b8b5d1daed237421060d2ef3520556534;p=krb5.git From 1.1 branch: 1999-09-01 Danilo Almeida * klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name instead of free. 1999-08-26 Danilo Almeida * klist.c (show_credential): Index addresses array with i in a loop instead of 1. (Thanks to jaltman@columbia.edu) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11772 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index face70998..98cd6e662 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,13 @@ +1999-09-01 Danilo Almeida + + * klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name + instead of free. + +1999-08-26 Danilo Almeida + + * klist.c (show_credential): Index addresses array with i + in a loop instead of 1. (Thanks to jaltman@columbia.edu) + 1999-08-09 Danilo Almeida * Makefile.in: Use standard windows exe link flags. diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 5d79a52e4..891d98013 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -248,7 +248,7 @@ void do_keytab(name) printf(")"); } printf("\n"); - free(pname); + krb5_free_unparsed_name(kcontext, pname); } if (code && code != KRB5_KT_END) { com_err(progname, code, "while scanning keytab"); @@ -447,7 +447,7 @@ show_credential(progname, kcontext, cred) retval = krb5_unparse_name(kcontext, cred->server, &sname); if (retval) { com_err(progname, retval, "while unparsing server name"); - free(name); + krb5_free_unparsed_name(kcontext, name); return; } if (!cred->times.starttime) @@ -527,15 +527,15 @@ show_credential(progname, kcontext, cred) for (i=1; cred->addresses[i]; i++) { printf(", "); - one_addr(cred->addresses[1]); + one_addr(cred->addresses[i]); } printf("\n"); } } - free(name); - free(sname); + krb5_free_unparsed_name(kcontext, name); + krb5_free_unparsed_name(kcontext, sname); } void one_addr(a)