From 321ed38517c0d8c5f431b3e140e9c8521e4f9dc0 Mon Sep 17 00:00:00 2001
From: Gerardo Ganis <Gerardo.Ganis@cern.ch>
Date: Mon, 10 Apr 2017 15:39:43 +0200
Subject: [PATCH] proof: fix Coverity #66767

---
 proof/proof/src/TPackMgr.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proof/proof/src/TPackMgr.cxx b/proof/proof/src/TPackMgr.cxx
index ec179e5c891..ebe9fd8ddd9 100644
--- a/proof/proof/src/TPackMgr.cxx
+++ b/proof/proof/src/TPackMgr.cxx
@@ -842,6 +842,7 @@ Int_t TPackMgr::Install(const char *parpath, Bool_t rmold)
    if (install) {
       if (!TFile::Cp(psrc, dest)) {
          Error("Install", "could not copy %s to %s", psrc.Data(), dest.Data());
+         if (md5) delete md5;
          return -1;
       }
    }
-- 
GitLab