Remove memory leaks.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16265 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-10-31 15:59:11 +00:00
parent 6cda86abca
commit 3cf6e96dbb
2 changed files with 24 additions and 0 deletions

View File

@@ -98,9 +98,21 @@ copy_import(void)
if (usage1 != usage1)
errx(1, "usage not equal");
gss_release_cred(&min_stat, &cred1);
gss_release_cred(&min_stat, &cred2);
gss_release_name(&min_stat, &name1);
gss_release_name(&min_stat, &name2);
#if 0
compare(mechs1, mechs2);
#endif
gss_release_oid_set(&min_stat, &mechs1);
gss_release_oid_set(&min_stat, &mechs2);
krb5_cc_destroy(context, id);
krb5_free_context(context);
}
static struct getargs args[] = {