+2004-05-24 Ezra Peisach <epeisach@mit.edu>
+
+ * t_cc.c (cc_test): Clean up memory leaks in tests.
+
2004-05-15 Jeffrey Altman <jaltman@mit.edu>
* cc_mslsa.c: The FAILED() macro only considered an error
"server-comp1", "server-comp2", 0);
}
+static void free_test_cred(krb5_context context)
+{
+ krb5_free_principal(context, test_creds.client);
+
+ krb5_free_principal(context, test_creds.server);
+
+}
+
#define CHECK(kret,msg) \
if (kret != KRB5_OK) {\
com_err(msg, kret, ""); \
kret = krb5_cc_destroy(context, id);
CHECK(kret, "destroy");
#endif
+
+ free_test_cred(context);
+
}
static void do_test(krb5_context context, const char *prefix)