[omniORB] Is this a memory leak?

Igor Lautar igor.lautar at hermes-softlab.com
Thu Oct 22 16:53:01 BST 2009


Hi,

On Thursday 22 October 2009 15:47:02 Preston, Ralph A. wrote:
> Could someone please explain why this is, or isn't, a memory leak. I'm
>  writing this from memory, so if there are any errors (besides the one I'm
>  about to describe) it's due to my faulty memory. As is, the code runs
>  correctly, but I thought I'd have to uncomment line 28 to remove a memory
>  leak, however, when I do that the server crashes.  Thanks!

It is not a memory leak, as IDL struct string (and other complex types) 
members are mapped to 'smart' pointers. Thus when you assign a new value, or 
structs destructor is called, member is freed.

Regards,



More information about the omniORB-list mailing list