Free more of the allocated memory.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16342 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-12-02 14:14:43 +00:00
parent 63506f62b3
commit e4794726e4
3 changed files with 11 additions and 1 deletions

View File

@@ -115,6 +115,9 @@ main(int argc, char **argv)
printf ("\n"); printf ("\n");
val = 1; val = 1;
} }
krb5_free_keyblock(context, dkey);
} }
krb5_free_context(context);
return val; return val;
} }

View File

@@ -215,12 +215,15 @@ main(int argc, char **argv)
t->v4_name, t->v4_inst, t->v4_realm, s); t->v4_name, t->v4_inst, t->v4_realm, s);
free(s); free(s);
val = 1; val = 1;
krb5_free_context(context);
continue; continue;
} }
} }
if (ret) if (ret) {
krb5_free_context(context);
continue; continue;
}
if (strcmp (t->v5_realm, princ->realm) != 0) { if (strcmp (t->v5_realm, princ->realm) != 0) {
printf ("wrong realm (\"%s\" should be \"%s\")" printf ("wrong realm (\"%s\" should be \"%s\")"
@@ -274,15 +277,18 @@ main(int argc, char **argv)
"krb5_524_conv_principal %s " "krb5_524_conv_principal %s "
"passed unexpected", printable_princ); "passed unexpected", printable_princ);
val = 1; val = 1;
krb5_free_context(context);
continue; continue;
} }
} }
if (ret) { if (ret) {
krb5_free_principal (context, princ); krb5_free_principal (context, princ);
krb5_free_context(context);
continue; continue;
} }
krb5_free_principal (context, princ); krb5_free_principal (context, princ);
krb5_free_context(context);
} }
return val; return val;
} }

View File

@@ -189,5 +189,6 @@ main(int argc, char **argv)
} }
krb5_free_principal (context, princ); krb5_free_principal (context, princ);
} }
krb5_free_context(context);
return val; return val;
} }