The test case added for bug 90289 (commit
c73edd00) revealed that some
of the C_Initialize() implementations do not consider the case where it
is called from the parent process and then from the child process,
without calling C_Finalize() in between.
/* We store CK_ULONG as pointers here, so verify that they fit */
assert (sizeof (CK_ULONG) <= sizeof (void *));
+ free (the_pin);
the_pin = (CK_UTF8CHAR_PTR)strdup ("booo");
n_the_pin = 4;
+ if (the_sessions)
+ p11_dict_free (the_sessions);
the_sessions = p11_dict_new (p11_dict_direct_hash,
p11_dict_direct_equal,
NULL, free_session);
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 {