Free requested-enctype list when freeing up credentials. Reported by Rainer
authorKen Raeburn <raeburn@mit.edu>
Thu, 8 Jun 2006 21:44:50 +0000 (21:44 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 8 Jun 2006 21:44:50 +0000 (21:44 +0000)
Weikusat.

ticket: 3790

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18093 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/rel_cred.c

index b7db6f061b69bfcb734501a25a184cb9d1935622..e48656f9f3dceac2c5ffc07fc8aa055f5da85646 100644 (file)
@@ -70,6 +70,10 @@ krb5_gss_release_cred(minor_status, cred_handle)
       code3 = 0;
    if (cred->princ)
       krb5_free_principal(context, cred->princ);
+
+   if (cred->req_enctypes)
+       free(cred->req_enctypes);
+
    xfree(cred);
    krb5_free_context(context);