From a5fd08d1911daea31ac39c8289b8fede91b90c9d Mon Sep 17 00:00:00 2001
From: Olivier Couet <Olivier.Couet@cern.ch>
Date: Thu, 30 Sep 2010 14:48:12 +0000
Subject: [PATCH] - coverity #12143

git-svn-id: http://root.cern.ch/svn/root/trunk@35928 27541ba8-7e3a-0410-8455-c3a389f83636
---
 graf2d/asimage/src/TASImage.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/graf2d/asimage/src/TASImage.cxx b/graf2d/asimage/src/TASImage.cxx
index 22ffd50747a..9791e420c9d 100644
--- a/graf2d/asimage/src/TASImage.cxx
+++ b/graf2d/asimage/src/TASImage.cxx
@@ -2789,6 +2789,7 @@ Double_t *TASImage::Vectorize(UInt_t max_colors, UInt_t dither, Int_t opaque_thr
    fPalette = *pal;
    fImage->alt.vector = vec;
    UnZoom();
+   if (res) delete res;
    return (Double_t*)fImage->alt.vector;
 }
 
-- 
GitLab