[omniORB] vety basinc BOA question

Duncan Grisby dgrisby@uk.research.att.com
Wed, 20 Feb 2002 14:19:54 +0000


On Friday 15 February, "Ivan Ivanov" wrote:

> Very often one could see a code snippet containing the line:
> my_implementation->_obj_is_ready (CORBA::BOA::getBOA ());
> 
> The getBOA() function returns a new reference (with duplicating BOA_ptr)
> which is never released as far as I can understand it.

Indeed.

[...]
> Is there a memory leak in the first case?

The BOA is a singleton, so there is no ongoing memory leak. The worst
that happens is that the BOA is not released when the program exits.
Since omniORB 2 wasn't particularly good at releasing things at exit
anyway, that's hardly a significant problem.

You shouldn't be using the BOA any more, so it doesn't matter.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --