diff options
author | Cykesiopka <cykesiopka.bmo@gmail.com> | 2014-05-29 21:52:47 +0200 |
---|---|---|
committer | Cykesiopka <cykesiopka.bmo@gmail.com> | 2014-05-29 21:52:47 +0200 |
commit | b7333d2d0a780e8f9e8fecc978e26929db53f9ae (patch) | |
tree | 22747b3a25630eba560598039f2093b6ad24f2f5 | |
parent | 798ad9def8951157a0dbfc0d4bd7324832da2b59 (diff) | |
download | nss-hg-b7333d2d0a780e8f9e8fecc978e26929db53f9ae.tar.gz |
Bug 485732 - Fix nsslowcert_OpenCertDB() on failure PRMonitor leak. r=emaldona, r=rrelyea
-rw-r--r-- | lib/softoken/legacydb/pcertdb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/softoken/legacydb/pcertdb.c b/lib/softoken/legacydb/pcertdb.c index d3c757d17..58fe27af9 100644 --- a/lib/softoken/legacydb/pcertdb.c +++ b/lib/softoken/legacydb/pcertdb.c @@ -4598,9 +4598,12 @@ nsslowcert_OpenCertDB(NSSLOWCERTCertDBHandle *handle, PRBool readOnly, } return (SECSuccess); - -loser: +loser: + if (handle->dbMon) { + PZ_DestroyMonitor(handle->dbMon); + handle->dbMon = NULL; + } PORT_SetError(SEC_ERROR_BAD_DATABASE); return(SECFailure); } |