diff options
-rw-r--r-- | src/eng_base.cpp | 4 | ||||
-rw-r--r-- | src/x509cert.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/eng_base.cpp b/src/eng_base.cpp index 2a2168c0b..a726fd762 100644 --- a/src/eng_base.cpp +++ b/src/eng_base.cpp @@ -45,8 +45,8 @@ class Algorithm_Cache_Impl : public Engine::Algorithm_Cache<T> ~Algorithm_Cache_Impl() { - typename std::map<std::string, T*>::iterator i - = mappings.begin(); + typename std::map<std::string, T*>::iterator i = mappings.begin(); + while(i != mappings.end()) { delete i->second; diff --git a/src/x509cert.cpp b/src/x509cert.cpp index fcd63949b..404e56f29 100644 --- a/src/x509cert.cpp +++ b/src/x509cert.cpp @@ -313,8 +313,8 @@ X509_DN create_dn(const Data_Store& info) } }; - std::multimap<std::string, std::string> names - = info.search_with(DN_Matcher()); + std::multimap<std::string, std::string> names = + info.search_with(DN_Matcher()); X509_DN dn; @@ -349,8 +349,8 @@ AlternativeName create_alt_name(const Data_Store& info) std::vector<std::string> matches; }; - std::multimap<std::string, std::string> names - = info.search_with(AltName_Matcher("RFC822/DNS/URI")); + std::multimap<std::string, std::string> names = + info.search_with(AltName_Matcher("RFC822/DNS/URI")); AlternativeName alt_name; |