From: abn Date: Fri, 12 May 2017 14:37:35 +0000 (+0200) Subject: Memory leak fix ... was in tests only. Pffew ;-) X-Git-Tag: V8_4_0a1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2e2cdc3f8a76bdae5b96799247e6a621a6f52ee;p=tools%2Fmedcoupling.git Memory leak fix ... was in tests only. Pffew ;-) --- diff --git a/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx b/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx index d325f6398..b0ee27d24 100644 --- a/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx +++ b/src/INTERP_KERNELTest/TestInterpKernelUtils.cxx @@ -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