mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Fix for bug 353572. Leak in sftk_OpenCertDB . r=alexei,nelson
This commit is contained in:
parent
5c3a9ca69a
commit
f7ae527571
@ -36,7 +36,7 @@
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
/* $Id: dbinit.c,v 1.29 2006/06/26 23:42:59 wtchang%redhat.com Exp $ */
|
||||
/* $Id: dbinit.c,v 1.30 2006/09/22 00:19:49 julien.pierre.bugs%sun.com Exp $ */
|
||||
|
||||
#include <ctype.h>
|
||||
#include "seccomon.h"
|
||||
@ -291,6 +291,7 @@ sftk_freeCertDB(NSSLOWCERTCertDBHandle *certHandle)
|
||||
PRInt32 ref = PR_AtomicDecrement(&certHandle->ref);
|
||||
if (ref == 0) {
|
||||
nsslowcert_ClosePermCertDB(certHandle);
|
||||
PORT_Free(certHandle);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user