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);
|
(*windcft->init)(context, &windcctx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (e == NULL) {
|
|
||||||
_krb5_plugin_free(list);
|
_krb5_plugin_free(list);
|
||||||
|
if (e == NULL) {
|
||||||
krb5_set_error_message(context, ENOENT, "Did not find any WINDC plugin");
|
krb5_set_error_message(context, ENOENT, "Did not find any WINDC plugin");
|
||||||
windcft = NULL;
|
windcft = NULL;
|
||||||
return ENOENT;
|
return ENOENT;
|
||||||
|
Reference in New Issue
Block a user