be sure to krb5_free_principal when done
authorJohn Kohl <jtkohl@mit.edu>
Thu, 21 Mar 1991 14:45:29 +0000 (14:45 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 21 Mar 1991 14:45:29 +0000 (14:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1944 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/movemail/movemail.c
src/appl/popper/pop_init.c

index 1bf9bb88fb8dbf3daaed8b9e06cd46ee88e30a91..ad937465567275f73c1d31fcacaa060db837d02c 100644 (file)
@@ -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'] ",
index 90c2be6d3522f07c426f0233f17d50a1abaa6c60..e57db5b480afa3f36032ca161413c97425dc45c4 100644 (file)
@@ -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));