From: caremoli Date: Wed, 16 Jan 2008 08:19:09 +0000 (+0000) Subject: CCAR: remove memeory leak X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43c8deb96fde3ec33184b68630fcc1588ad6d876;p=modules%2Fkernel.git CCAR: remove memeory leak --- diff --git a/src/ParallelContainer/Parallel_Salome_file_i.cxx b/src/ParallelContainer/Parallel_Salome_file_i.cxx index ac06b5005..15f9338fb 100644 --- a/src/ParallelContainer/Parallel_Salome_file_i.cxx +++ b/src/ParallelContainer/Parallel_Salome_file_i.cxx @@ -245,6 +245,7 @@ Parallel_Salome_file_i::getParallelDistributedFile(std::string file_name) { toFollow = aBlock->length(); CORBA::Octet *buf = aBlock->get_buffer(); int nbWri = fwrite(buf, sizeof(CORBA::Octet), toFollow, fp); + delete aBlock; ASSERT(nbWri == toFollow); } fclose(fp);