From c45feba666ab6084a193ff1f88e21770439a091d Mon Sep 17 00:00:00 2001 From: caremoli Date: Wed, 16 Jan 2008 08:18:11 +0000 Subject: [PATCH] CCAR: remove memory leak --- src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx b/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx index bb72d3f20..895c53581 100644 --- a/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx @@ -184,6 +184,7 @@ string SALOME_FileTransferCORBA::getLocalFile(string localFile) SCRUTE(toFollow); 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