Fix Coverity 10050
[u/mrichter/AliRoot.git] / TTherminator / Therminator / ReadPar.cxx
index cb193f2..2242e25 100644 (file)
@@ -30,6 +30,7 @@
 #include <fstream>
 #include <sstream>
 #include <iosfwd>
+#include <stdlib.h>
 
 ReadPar::ReadPar()
 {
@@ -42,6 +43,12 @@ ReadPar::ReadPar(const char *aFName)
   readFile(aFName);
 }
 
+ReadPar::~ReadPar()
+{
+  if (fname)
+    free(fname);
+}
+
 int ReadPar::readFile(const char *aFName) throw (int)
 {
   option read_opt;