diff options
-rw-r--r-- | auth_mellon_handler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c index 1de217a..2a0bd74 100644 --- a/auth_mellon_handler.c +++ b/auth_mellon_handler.c @@ -256,8 +256,12 @@ static guint am_server_add_providers(am_dir_cfg_rec *cfg, request_rec *r) } } - if (loaded_idp != NULL) - g_free(loaded_idp); + if (loaded_idp != NULL) { + for (GList *idx = loaded_idp; idx != NULL; idx = idx->next) { + g_free(idx->data); + } + g_list_free(loaded_idp); + } #else /* HAVE_lasso_server_load_metadata */ error = lasso_server_add_provider(cfg->server, |