Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 May 2011 09:08:24 +0000 (09:08 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 May 2011 09:08:24 +0000 (09:08 +0000)
TTherminator/Therminator/Parser.cxx

index 1645be8..892935e 100644 (file)
@@ -590,6 +590,8 @@ void Parser::ReadShare()
          tPartBuf->SetPDGCode((int) mc);
          tPartBuf->SetNumber(number);
          tNum = mDB->AddParticleType(tPartBuf);
+
+         delete tPartBuf;
        }
       in.close();
     }