diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-23 16:45:50 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-23 23:06:30 +0200 |
commit | b14fc0351c4dd71c5ca71df77e325d2b2a4c0583 (patch) | |
tree | c4a47c77a977158b8bd4dcc8f478d6bc34ad233b /p11-kit/modules.c | |
parent | b7cc29a78c3c705374ff25223fe14749ddb076b9 (diff) |
Fix various memory leaks exposed by 'make leakcheck'
Diffstat (limited to 'p11-kit/modules.c')
-rw-r--r-- | p11-kit/modules.c | 2 |
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; |