https://issues.shibboleth.net/jira/browse/SSPCPP-392
authorScott Cantor <cantor.2@osu.edu>
Mon, 12 Sep 2011 16:39:29 +0000 (16:39 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 12 Sep 2011 16:39:29 +0000 (16:39 +0000)
shibsp/attribute/filtering/impl/AttributeScopeRegexFunctor.cpp
shibsp/attribute/filtering/impl/AttributeValueRegexFunctor.cpp
shibsp/impl/StorageServiceSessionCache.cpp

index ef1423e..10787f2 100644 (file)
@@ -70,6 +70,10 @@ namespace shibsp {
             }
         }
 
+        virtual ~AttributeScopeRegexFunctor() {
+            delete m_regex;
+        }
+
         bool evaluatePolicyRequirement(const FilteringContext& filterContext) const {
             if (m_attributeID.empty())
                 throw AttributeFilteringException("No attributeID specified.");
index 6982717..39e77c6 100644 (file)
@@ -72,6 +72,10 @@ namespace shibsp {
             }
         }
 
+        virtual ~AttributeValueRegexFunctor() {
+            delete m_regex;
+        }
+
         bool evaluatePolicyRequirement(const FilteringContext& filterContext) const {
             if (m_attributeID.empty())
                 throw AttributeFilteringException("No attributeID specified.");
index 8d060e9..cb46aad 100644 (file)
@@ -963,7 +963,9 @@ void SSCache::insert(
         }
     }
 
-    auto_ptr_char key(SAMLConfig::getConfig().generateIdentifier());
+    XMLCh* widekey = SAMLConfig::getConfig().generateIdentifier();
+    auto_ptr_char key(widekey);
+    XMLString::release(&widekey);
 
     // Store session properties in DDF.
     DDF obj = DDF(key.get()).structure();