diff --git a/src/XrdSecgsi/XrdSecProtocolgsi.cc b/src/XrdSecgsi/XrdSecProtocolgsi.cc index d7d725ec317..5f9e3d96528 100644 --- a/src/XrdSecgsi/XrdSecProtocolgsi.cc +++ b/src/XrdSecgsi/XrdSecProtocolgsi.cc @@ -1948,6 +1948,7 @@ int XrdSecProtocolgsi::Authenticate(XrdSecCredentials *cred, } else { // Fetch a copy of the saved entity int slen = 0; + FreeEntity(&Entity); CopyEntity((XrdSecEntity *) cent->buf1.buf, &Entity, &slen); // Notify DEBUG("Got Entity from cacheAuthzFun ("<