From 353ad0a12f17cae36af84b7ce5efa3229cf5b0a7 Mon Sep 17 00:00:00 2001 From: Michal Simon Date: Mon, 15 Jan 2018 16:01:18 +0100 Subject: [PATCH] [XrdCl] Make sure there are no leaks in FSH. --- src/XrdCl/XrdClFileStateHandler.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/XrdCl/XrdClFileStateHandler.cc b/src/XrdCl/XrdClFileStateHandler.cc index e629635338b..e7255c5eab2 100644 --- a/src/XrdCl/XrdClFileStateHandler.cc +++ b/src/XrdCl/XrdClFileStateHandler.cc @@ -280,6 +280,12 @@ namespace XrdCl // so we need to nullify the pointer pHandler = 0; } + else + { + delete status; + delete response; + delete hostList; + } // destroy the object if it is DestroyMyself( scopedLock ); }