]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSClusterFinderV2SSD.cxx
Fix a Coverity warning: missing array deletion under certain circumstances (M. van...
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderV2SSD.cxx
index 84592311f5e502b23cd218fea0e57abc9ebb8019..7f7427a27c38ec870af121196edab19898af7bef 100644 (file)
@@ -739,7 +739,15 @@ FindClustersSSD(Ali1Dcluster* neg, Int_t nn,
     }
   }
 
-  if (!ncross) return;
+  if (!ncross) {
+    delete [] cnegative;
+    delete [] cused1;
+    delete [] negativepair;
+    delete [] cpositive;
+    delete [] cused2;
+    delete [] positivepair;
+    return;
+  }
 //why not to allocate memorey here?  if(!clusters) clusters = new TClonesArray("AliITSRecPoint", ncross);
   
   /* //
@@ -1764,4 +1772,3 @@ FindClustersSSD(Ali1Dcluster* neg, Int_t nn,
   delete [] positivepair;
 
 }
-