SSPCPP-118 - Fix memory leak in insert method.
authorScott Cantor <cantor.2@osu.edu>
Mon, 14 Jul 2008 21:14:52 +0000 (21:14 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 14 Jul 2008 21:14:52 +0000 (21:14 +0000)
https://issues.shibboleth.net/jira/browse/SSPCPP-118

shibsp/impl/StorageServiceSessionCache.cpp

index 50e8972..3219085 100644 (file)
@@ -936,6 +936,7 @@ void SSCache::insert(
 
     // Store session properties in DDF.
     DDF obj = DDF(key.get()).structure();
+    DDFJanitor entryobj(obj);
     obj.addmember("version").integer(1);
     obj.addmember("application_id").string(application.getId());
 
@@ -1048,6 +1049,8 @@ void SSCache::insert(
             (nameid ? name.get() : "none") <<
         ") using (Protocol: " <<
             (prot ? prot : "none") <<
+        ") from (AssertionID: " <<
+            (tokens ? obj["assertions"].first().string() : "none") <<
         ")";
 
     if (attributes) {