[omniORB] The correct way to end a process; looking at deallocation

Duncan Grisby dgrisby@uk.research.att.com
Wed, 15 Aug 2001 17:04:51 +0100


On Wednesday 15 August, "ERIKSSON,TOBIAS (A-Sweden,ex1)" wrote:

>  I've just been running purify on Solaris 2.5.1 and 2.8 and it seems like
> the orb isn't deallocated properly.

There are currently a number of things that omniORB allocates but
never frees. They are all singletons, so they aren't leaks in the
sense of things which make the process grow.

To get rid of as much as possible, you should call ORB::destroy().
That automatically calls ORB::shutdown(), so you don't need to do it
separately unless you need an asynchronous shutdown.

With any luck, omniORB 4 will delete everything it allocates when you
do ORB::destroy().

Cheers,

Duncan.

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