skiplist insert free?

Ethan Galstad nagios at nagios.org
Wed Oct 15 17:18:35 CEST 2008


This has already been fixed in CVS.  Probably in the 3.0.2 or 3.0.3
release as well.

hirenp wrote:
> Hi,
> 
> I'm wondering if this is a valid submission:
> 
> --- common/skiplist.c   2008-02-29 03:11:16.000000000 +0200
> +++ /tmp/skiplist.c     2008-09-28 12:17:20.000000000 +0200
> @@ -86,6 +86,7 @@
>         /* NOTE: this could made be more efficient */
>         if(list->allow_duplicates==FALSE){
>                 if(skiplist_find_first(list,data,NULL))
> +                       free(update);
>                         return SKIPLIST_ERROR_DUPLICATE;
>                 }
>  


- Ethan Galstad

-------------------------------------------------------------------------
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