Free more of the allocated memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16344 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-12-02 15:15:43 +00:00
parent eb0369c938
commit 2b64016a93
2 changed files with 5 additions and 0 deletions

View File

@@ -106,10 +106,13 @@ main(int argc, char **argv)
sp = krb5_storage_emem();
krb5_make_principal(context, &principal, "TEST", "foobar", NULL);
krb5_store_principal(sp, principal);
krb5_free_principal(context, principal);
nerr += compare("Principal", sp, "\x0\x0\x0\x1"
"\x0\x0\x0\x1"
"\x0\x0\x0\x4TEST"
"\x0\x0\x0\x6""foobar", 26);
krb5_free_context(context);
return nerr ? 1 : 0;
}

View File

@@ -133,6 +133,8 @@ main(int argc, char **argv)
printf ("\n");
val = 1;
}
krb5_free_keyblock_contents(context, &key);
}
krb5_free_context(context);
return val;
}