]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Memory leak fix ... was in tests only. Pffew ;-)
authorabn <adrien.bruneton@cea.fr>
Fri, 12 May 2017 14:37:35 +0000 (16:37 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 12 May 2017 14:37:35 +0000 (16:37 +0200)
src/INTERP_KERNELTest/TestInterpKernelUtils.cxx

index d325f6398feceed87a75e59bf01e3cde26b2b3a0..b0ee27d2413a3cf9c89932875c76b1e581715198 100644 (file)
@@ -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 += "../";