heimdal kerberos - fix memory leak (free the plugin list always - not only in error cases)

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Matthias Dieter Wallnöfer
2009-10-03 15:36:44 +02:00
committed by Love Hornquist Astrand
parent 100c440153
commit 8457216616

View File

@@ -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;