From bf7cc3262e3cbd72a3603d3c648fccfe7ce9829f Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 6 Dec 2009 04:05:45 +0200 Subject: krb5: Fix leaked hx509_context pointer Signed-off-by: Andrew Tridgell --- source4/heimdal/lib/krb5/context.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/heimdal/lib/krb5') 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); -- cgit