[gnome-keyring] rpc-layer: Fix memory leak in call state pool
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] rpc-layer: Fix memory leak in call state pool
- Date: Tue, 25 Sep 2012 14:00:28 +0000 (UTC)
commit 0c71452290977332a0e86d9eb0d04b291cce2263
Author: Stef Walter <stefw gnome org>
Date: Wed Sep 19 09:12:39 2012 +0200
rpc-layer: Fix memory leak in call state pool
https://bugzilla.gnome.org/show_bug.cgi?id=684351
pkcs11/rpc-layer/gkm-rpc-module.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/rpc-layer/gkm-rpc-module.c b/pkcs11/rpc-layer/gkm-rpc-module.c
index b95bee1..240fd83 100644
--- a/pkcs11/rpc-layer/gkm-rpc-module.c
+++ b/pkcs11/rpc-layer/gkm-rpc-module.c
@@ -1254,6 +1254,13 @@ rpc_C_Finalize (CK_VOID_PTR reserved)
warning (("finalizing the daemon returned an error: %d", ret));
}
+ /* 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]