skiplist insert free?

hirenp hir3npatel at gmail.com
Sun Sep 28 12:29:16 CEST 2008


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



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