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:

committed by
Love Hornquist Astrand

parent
100c440153
commit
8457216616
@@ -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;
|
||||
|
Reference in New Issue
Block a user