summaryrefslogtreecommitdiffstats
path: root/pinst.c
diff options
context:
space:
mode:
Diffstat (limited to 'pinst.c')
-rw-r--r--pinst.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pinst.c b/pinst.c
index 0a80803..c995b14 100644
--- a/pinst.c
+++ b/pinst.c
@@ -487,10 +487,22 @@ pem_Finalize
NSSCKFWInstance * fwInstance
)
{
+ int i;
+
plog("pem_Finalize\n");
if (!pemInitialized)
return;
+ for (i = 0; i < pem_nobjs; ++i)
+ pem_DestroyInternalObject(gobj[i]);
+
+ nss_ZFreeIf(gobj);
+ gobj = NULL;
+
+ pem_nobjs = 0;
+ size = 0;
+ count = 0;
+
PR_AtomicSet(&pemInitialized, PR_FALSE);
return;