skiplist insert free?
hiren
hir3npatel at gmail.com
Mon Sep 29 09:26:52 CEST 2008
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 SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
More information about the Developers
mailing list