summaryrefslogtreecommitdiff
path: root/p11-kit/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/modules.c')
-rw-r--r--p11-kit/modules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/modules.c b/p11-kit/modules.c
index 43ace18..b373544 100644
--- a/p11-kit/modules.c
+++ b/p11-kit/modules.c
@@ -467,8 +467,10 @@ take_config_and_load_module_inlock (char **name,
return CKR_OK;
/* Take ownership of thes evariables */
+ p11_dict_free (mod->config);
mod->config = *config;
*config = NULL;
+ free (mod->name);
mod->name = *name;
*name = NULL;
mod->critical = critical;