[omniORB] Huge Memory Leak while using DynAny in omniORB4

Duncan Grisby duncan@grisby.org
Mon Jan 20 11:50:03 2003


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.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --