From: caremoli Date: Wed, 16 Jan 2008 08:18:11 +0000 (+0000) Subject: CCAR: remove memory leak X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c45feba666ab6084a193ff1f88e21770439a091d;p=modules%2Fkernel.git CCAR: remove memory leak --- 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);