Index: crypto/nss_util.cc |
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc |
index 9cd0cd1aa34be54f903d70df2445e2d4bf66e92e..b3fe4a21e6474d6d39aff5589f90e62d063ad4b8 100644 |
--- a/crypto/nss_util.cc |
+++ b/crypto/nss_util.cc |
@@ -746,9 +746,8 @@ ScopedTestNSSDB::ScopedTestNSSDB() |
} |
ScopedTestNSSDB::~ScopedTestNSSDB() { |
- // TODO(mattm): Close the dababase once NSS 3.14 is required, |
- // which fixes https://bugzilla.mozilla.org/show_bug.cgi?id=588269 |
- // Resource leaks are suppressed. http://crbug.com/156433 . |
+ if (NSS_VersionCheck("3.14")) |
+ g_nss_singleton.Get().CloseTestNSSDB(); |
} |
base::Lock* GetNSSWriteLock() { |