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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/p11-kit/modules.c b/p11-kit/modules.c
index 0498708..5eb97fd 100644
--- a/p11-kit/modules.c
+++ b/p11-kit/modules.c
@@ -525,14 +525,17 @@ load_registered_modules_unlocked (void)
* These variables will be cleared if ownership is transeferred
* by the above function call.
*/
- free (name);
_p11_hash_free (config);
if (critical && rv != CKR_OK) {
- _p11_message ("aborting initializationg because module '%s' was marked as critical");
+ _p11_message ("aborting initialization because module '%s' was marked as critical",
+ name);
_p11_hash_free (configs);
+ free (name);
return rv;
}
+
+ free (name);
}
_p11_hash_free (configs);