Bug 327677. Fix cert object reference leak. r=julien.pierre,nelson
Patch contributed by Alexei Volkov <alexei.volkov.bugs@sun.com> git-svn-id: svn://10.0.0.236/trunk@191662 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
20edfabbb5
commit
6f20576504
@ -37,7 +37,7 @@
|
||||
/*
|
||||
* CMS recipientInfo methods.
|
||||
*
|
||||
* $Id: cmsrecinfo.c,v 1.17 2006-02-28 05:56:07 nelson%bolyard.com Exp $
|
||||
* $Id: cmsrecinfo.c,v 1.18 2006-03-03 04:00:49 nelson%bolyard.com Exp $
|
||||
*/
|
||||
|
||||
#include "cmslocal.h"
|
||||
@ -299,6 +299,9 @@ done:
|
||||
return ri;
|
||||
|
||||
loser:
|
||||
if (ri && ri->cert) {
|
||||
CERT_DestroyCertificate(ri->cert);
|
||||
}
|
||||
if (freeSpki) {
|
||||
SECKEY_DestroySubjectPublicKeyInfo(freeSpki);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user