diff options
author | ian.mcgreer%sun.com <devnull@localhost> | 2002-02-14 18:02:30 +0000 |
---|---|---|
committer | ian.mcgreer%sun.com <devnull@localhost> | 2002-02-14 18:02:30 +0000 |
commit | 956e715009e33d4598ea9fea6ebefdd1849638b1 (patch) | |
tree | a4ec3769967a850f93c3ba9e9964935d3e544923 /security/nss/cmd/certutil | |
parent | d83cff8a04e54dad788dbb78a45f371954d79724 (diff) | |
download | nss-hg-956e715009e33d4598ea9fea6ebefdd1849638b1.tar.gz |
make listing of certs finish cleanly under purify
Diffstat (limited to 'security/nss/cmd/certutil')
-rw-r--r-- | security/nss/cmd/certutil/certutil.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/security/nss/cmd/certutil/certutil.c b/security/nss/cmd/certutil/certutil.c index af18eb80e..47d963bf4 100644 --- a/security/nss/cmd/certutil/certutil.c +++ b/security/nss/cmd/certutil/certutil.c @@ -693,8 +693,11 @@ ListCerts(CERTCertDBHandle *handle, char *name, PK11SlotInfo *slot, list= PK11_GetAllTokens(CKM_INVALID_MECHANISM, PR_FALSE,PR_FALSE,pwdata); - if (list) for (le = list->head; le; le = le->next) { - rv = listCerts(handle,name,le->slot,raw,ascii,outfile,pwdata); + if (list) { + for (le = list->head; le; le = le->next) { + rv = listCerts(handle,name,le->slot,raw,ascii,outfile,pwdata); + } + PK11_FreeSlotList(list); } } else { rv = listCerts(handle,name,slot,raw,ascii,outfile,pwdata); |