]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: remove memeory leak
authorcaremoli <caremoli>
Wed, 16 Jan 2008 08:19:09 +0000 (08:19 +0000)
committercaremoli <caremoli>
Wed, 16 Jan 2008 08:19:09 +0000 (08:19 +0000)
src/ParallelContainer/Parallel_Salome_file_i.cxx

index ac06b50057e65b007e42ac82b5168657273dd52e..15f9338fbf76b7682a8d4a23b454f9976e896891 100644 (file)
@@ -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);