Re: [Nagios-devel] skiplist insert free?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] skiplist insert free?

Post by Guest »

thanks.
I'm a bit confused about why it could be correct though, from what I see
the function uses "update" and frees it at the end just before returning
anyway. from what I understand the function uses "update" only for
itself either way?

On Sun, 2008-09-28 at 16:54 +0200, Andreas Ericsson wrote:
> hirenp wrote:
> > Hi,
> >
> > I'm wondering if this is a valid submission:
> >
>
> I'll look into it. If the skiplist api copies the passed data,
> then it's correct (as the caller will never have a pointer to
> the data in that case). If the api doesn't, then it's wrong,
> as the caller may need to do something else with the pointer
> when the skiplist insertion fails.
>






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked