Salome HOME
Deal with pipes
[tools/medcoupling.git] / src / INTERP_KERNELTest / TestInterpKernelUtils.cxx
index 211bdc34d05045ef27c65f0aed2e7b68e9c74b99..b0ee27d2413a3cf9c89932875c76b1e581715198 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -45,7 +45,9 @@ namespace INTERP_TEST
         return resourceFile;
     }
     // else
-    resourceFile = getcwd(NULL, 0);
+    char * tmp_c = getcwd(NULL, 0);
+    resourceFile = tmp_c;
+    free(tmp_c);
     resourceFile += "/";
     for(int i=0; i<levelUp; i++)
       resourceFile += "../";