[omniORB] Huge Memory Leak while using DynAny in omniORB4
Alfonso Tames
alfonso@tames.com
Mon Jan 20 17:03:01 2003
Thanks Duncan ! It leaks no more !
I found a useful article by Schmidt and Vinoski about Dynamic Any here:
http://www.cuj.com/experts/2009/vinoski.htm
Cheers,
Alfonso
On Mon, 2003-01-20 at 05:49, Duncan Grisby wrote:
> On Saturday 18 January, Alfonso Tames wrote:
>
> > The memory leaking is so huge that maybe I am doing something stupid,
> > but I still can't find what it could be.
>
> [...]
> > DynamicAny::NameValuePairSeq* sq = ds->get_members();
>
> get_members returns a new sequence. You don't ever delete it, so you
> leak. Use a NameValuePairSeq_var, and your leak should go away.
>
> Cheers,
>
> Duncan.
--
Alfonso Tames <alfonso@tames.com>
Mercadio