Author: Stef Walter <stefw@gnome.org>
Origin: vendor
Bug-Upstream: https://bugzilla.gnome.org/show_bug.cgi?id=684351
Url: https://gitlab.gnome.org/GNOME/gnome-keyring/-/commit/0c71452290977332a0e86d9eb0d04b291cce2263

Index: pkcs11-proxy/gck-rpc-module.c
===================================================================
--- pkcs11-proxy.orig/gck-rpc-module.c
+++ pkcs11-proxy/gck-rpc-module.c
@@ -1444,6 +1444,14 @@ static CK_RV rpc_C_Finalize(CK_VOID_PTR
 	if (ret != CKR_OK)
 		warning(("finalizing the daemon returned an error: %d", ret));
 
+	// https://gitlab.gnome.org/GNOME/gnome-keyring/-/commit/0c71452290977332a0e86d9eb0d04b291cce2263
+	/* Cleanup the call state pool */
+	while (call_state_pool) {
+		cs = call_state_pool;
+		call_state_pool = cs->next;
+		call_destroy (cs);
+	}
+
 	/* This should stop all other calls in */
 	pkcs11_initialized = 0;
 	pkcs11_initialized_pid = 0;
