From c67571282e7ec1c7792de7c402b1a2db8a28781e Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 21 Mar 1991 14:45:29 +0000 Subject: [PATCH] be sure to krb5_free_principal when done git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1944 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/movemail/movemail.c | 1 + src/appl/popper/pop_init.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c index 1bf9bb88f..ad9374655 100644 --- a/src/appl/movemail/movemail.c +++ b/src/appl/movemail/movemail.c @@ -604,6 +604,7 @@ char *host; 0, /* don't need a subsession key */ &err_ret, 0); /* don't need reply */ + krb5_free_principal(server); if (retval) { if (err_ret && err_ret->text.length) { sprintf(Errmsg, "krb5 error: %s [server says '%*s'] ", diff --git a/src/appl/popper/pop_init.c b/src/appl/popper/pop_init.c index 90c2be6d3..e57db5b48 100644 --- a/src/appl/popper/pop_init.c +++ b/src/appl/popper/pop_init.c @@ -332,6 +332,7 @@ authenticate(p, addr) p->client, error_message(retval)); exit(-1); } + krb5_free_principal(server); if (retval = krb5_unparse_name(ext_client, &client_name)) { pop_msg(p, POP_FAILURE, "name not parsable--%s", error_message(retval)); -- 2.26.2