From 8457216616324cb534456095193acb1abf2f12b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Sat, 3 Oct 2009 15:36:44 +0200 Subject: [PATCH] heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases) Signed-off-by: Love Hornquist Astrand --- kdc/windc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdc/windc.c b/kdc/windc.c index 9d7fa52ce..ab844e346 100644 --- a/kdc/windc.c +++ b/kdc/windc.c @@ -61,8 +61,8 @@ krb5_kdc_windc_init(krb5_context context) (*windcft->init)(context, &windcctx); break; } + _krb5_plugin_free(list); if (e == NULL) { - _krb5_plugin_free(list); krb5_set_error_message(context, ENOENT, "Did not find any WINDC plugin"); windcft = NULL; return ENOENT;