diff options
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 f52c6e1..1ec0f1d 100644 --- a/p11-kit/modules.c +++ b/p11-kit/modules.c @@ -1480,6 +1480,8 @@ managed_C_Initialize (CK_X_FUNCTION_LIST *self, else rv = initialize_module_inlock_reentrant (managed->mod); if (rv == CKR_OK) { + if (managed->sessions) + p11_dict_free (managed->sessions); managed->sessions = sessions; managed->initialized = p11_forkid; } else { |