From 38d83607e84859a9c0fdd51a70db20c30bd3478f Mon Sep 17 00:00:00 2001 From: Petr Vokac Date: Mon, 3 May 2021 11:05:19 +0200 Subject: [PATCH] Fix memleak in SecEntity.host --- src/XrdHttp/XrdHttpProtocol.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XrdHttp/XrdHttpProtocol.cc b/src/XrdHttp/XrdHttpProtocol.cc index e3a299a4ade..ed63b64372d 100644 --- a/src/XrdHttp/XrdHttpProtocol.cc +++ b/src/XrdHttp/XrdHttpProtocol.cc @@ -746,6 +746,7 @@ int XrdHttpProtocol::Process(XrdLink *lp) // We ignore the argument here nfo = CurrentReq.opaque->Get("xrdhttphost"); if (nfo) { TRACEI(DEBUG, " Setting host: " << nfo); + if (SecEntity.host) free(SecEntity.host); SecEntity.host = unquote(nfo); TRACEI(REQ, " Setting host: " << SecEntity.host); }