Memory leak of decrypted NameID.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 2 Oct 2007 03:46:53 +0000 (03:46 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 2 Oct 2007 03:46:53 +0000 (03:46 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2519 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/handler/impl/SAML2Logout.cpp

index 2b0c5d0..ab2f67e 100644 (file)
@@ -406,6 +406,8 @@ pair<bool,long> SAML2Logout::doRequest(
                 );
         }
 
+        auto_ptr<NameID> namewrapper(ownedName ? nameid : NULL);
+
         // Suck indexes out of the request for next steps.
         set<string> indexes;
         EntityDescriptor* entity = policy.getIssuerMetadata() ? dynamic_cast<EntityDescriptor*>(policy.getIssuerMetadata()->getParent()) : NULL;