diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-12-06 04:05:45 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-08 12:39:10 +1100 |
commit | bf7cc3262e3cbd72a3603d3c648fccfe7ce9829f (patch) | |
tree | ef92b0f6b1fb463cc309cadf047cc470192e892e /source4 | |
parent | 4653d05fef15944e550fafe7c31961dbf007fd95 (diff) | |
download | samba-bf7cc3262e3cbd72a3603d3c648fccfe7ce9829f.tar.gz samba-bf7cc3262e3cbd72a3603d3c648fccfe7ce9829f.tar.bz2 samba-bf7cc3262e3cbd72a3603d3c648fccfe7ce9829f.zip |
krb5: Fix leaked hx509_context pointer
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/heimdal/lib/krb5/context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/heimdal/lib/krb5/context.c b/source4/heimdal/lib/krb5/context.c index 79e1000fd0..12fc676010 100644 --- a/source4/heimdal/lib/krb5/context.c +++ b/source4/heimdal/lib/krb5/context.c @@ -474,6 +474,10 @@ krb5_free_context(krb5_context context) krb5_set_ignore_addresses(context, NULL); krb5_set_send_to_kdc_func(context, NULL, NULL); +#ifdef PKINIT + hx509_context_free(&context->hx509ctx); +#endif + HEIMDAL_MUTEX_destroy(context->mutex); free(context->mutex); |