From 6ac33d22880a435042eeb0c00cb9ddd14ea7df38 Mon Sep 17 00:00:00 2001 From: John Thiltges Date: Sun, 5 Mar 2017 19:58:57 -0600 Subject: [PATCH] Free bpxy in XrdSecProtocolgsi::Authenticate when using VOMS plugin --- src/XrdSecgsi/XrdSecProtocolgsi.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XrdSecgsi/XrdSecProtocolgsi.cc b/src/XrdSecgsi/XrdSecProtocolgsi.cc index 7416e061c35..6cde2fd8ecb 100644 --- a/src/XrdSecgsi/XrdSecProtocolgsi.cc +++ b/src/XrdSecgsi/XrdSecProtocolgsi.cc @@ -1831,6 +1831,7 @@ int XrdSecProtocolgsi::Authenticate(XrdSecCredentials *cred, // PEM base64 bpxy = (*X509ExportChain)(hs->Chain, true); bpxy->ToString(spxy); + delete bpxy; Entity.creds = strdup(spxy.c_str()); Entity.credslen = spxy.length(); } else {