(kdc_destroy): free context when done, pointed out by Rafal Malinowski.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21036 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -171,6 +171,8 @@ kdc_destroy(OM_uint32 *minor, void *ctx)
|
|||||||
krb5_cc_close(c->context, c->id);
|
krb5_cc_close(c->context, c->id);
|
||||||
if (c->context)
|
if (c->context)
|
||||||
krb5_free_context(c->context);
|
krb5_free_context(c->context);
|
||||||
|
memset(c, 0, sizeof(*c));
|
||||||
|
free(c);
|
||||||
|
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user