From 339325792023c0f486c11c5967faeea50ca20945 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 3 Oct 2009 15:36:44 +0200 Subject: heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases) --- source4/heimdal/kdc/windc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/heimdal/kdc') diff --git a/source4/heimdal/kdc/windc.c b/source4/heimdal/kdc/windc.c index 9d7fa52cea..ab844e346c 100644 --- a/source4/heimdal/kdc/windc.c +++ b/source4/heimdal/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; -- cgit