]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: remove memory leak
authorcaremoli <caremoli>
Wed, 16 Jan 2008 08:18:11 +0000 (08:18 +0000)
committercaremoli <caremoli>
Wed, 16 Jan 2008 08:18:11 +0000 (08:18 +0000)
src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx

index bb72d3f207ad92f63f4796ff22ec13e6dcbb2695..895c53581b70532adeede7e40b689b70858d961a 100644 (file)
@@ -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);