summaryrefslogtreecommitdiff
path: root/p11-kit/modules.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-23 16:45:50 +0200
committerStef Walter <stef@thewalter.net>2013-07-23 23:06:30 +0200
commitb14fc0351c4dd71c5ca71df77e325d2b2a4c0583 (patch)
treec4a47c77a977158b8bd4dcc8f478d6bc34ad233b /p11-kit/modules.c
parentb7cc29a78c3c705374ff25223fe14749ddb076b9 (diff)
downloadp11-kit-b14fc0351c4dd71c5ca71df77e325d2b2a4c0583.tar.gz
Fix various memory leaks exposed by 'make leakcheck'
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;