From 43c8deb96fde3ec33184b68630fcc1588ad6d876 Mon Sep 17 00:00:00 2001 From: caremoli Date: Wed, 16 Jan 2008 08:19:09 +0000 Subject: [PATCH] CCAR: remove memeory leak --- src/ParallelContainer/Parallel_Salome_file_i.cxx | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2