summaryrefslogtreecommitdiff
path: root/pith/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/state.c')
-rw-r--r--pith/state.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pith/state.c b/pith/state.c
index bf5ff24e..84775792 100644
--- a/pith/state.c
+++ b/pith/state.c
@@ -179,6 +179,13 @@ free_pine_struct(struct pine **pps)
if((*pps)->passfile)
fs_give((void **)&(*pps)->passfile);
#ifdef SMIME
+ if((*pps)->pwdcert){
+ PERSONAL_CERT *pc;
+
+ pc = (PERSONAL_CERT *) (*pps)->pwdcert;
+ free_personal_certs(&pc);
+ (*pps)->pwdcert = NULL;
+ }
if((*pps)->pwdcertdir)
fs_give((void **)&(*pps)->pwdcertdir);
#endif /* SMIME inside PASSFILE */