plug memory leak
authorJohn Kohl <jtkohl@mit.edu>
Wed, 20 Feb 1991 18:20:42 +0000 (18:20 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 20 Feb 1991 18:20:42 +0000 (18:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1748 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/stdio/scc_retrv.c
src/lib/krb5/ccache/stdio/scc_skip.c

index f04ec1f11da413e60d4bd4f0db4b5a95a6700275..991628441630c316d6dde3c1b6e1791e526f2ba8 100644 (file)
@@ -166,7 +166,7 @@ krb5_scc_retrieve(id, whichfields, mcreds, creds)
          }
 
          /* This one doesn't match */
-         /* XXX krb5_free_credentials(creds); */
+         krb5_free_cred_contents(fetchcreds);
      }
 
      /* If we get here, a match wasn't found */
index bd14c351190354a3ba6f8b117fb492385ce19488..0b26b64a009cf49216d485ac1b7e1c9082f8c0d8 100644 (file)
@@ -29,7 +29,7 @@ krb5_scc_skip_principal(id)
      if (kret != KRB5_OK)
          return kret;
 
-     /* XXX krb5_destroy_principal(&princ); */
+     krb5_free_principal(&princ);
      return KRB5_OK;
 }