X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Flist.c;h=3082406fb63d5ae4f86151b0ba9b0d3898cde9a3;hp=d317622d7eb84f74f6bd1b7bdc74ff097541ce64;hb=a0c1696515fabd2183da7d8d83fd68410d2ec834;hpb=049ff67817e0db5afbba30930531d8ea3f7f2d18 diff --git a/lib/list.c b/lib/list.c index d317622d..3082406f 100644 --- a/lib/list.c +++ b/lib/list.c @@ -1,7 +1,7 @@ /* list.c -- functions to deal with double linked lists - Copyright (C) 2000 Ivo Timmermans - 2000 Guus Sliepen + Copyright (C) 2000,2001 Ivo Timmermans + 2000,2001 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: list.c,v 1.1.2.7 2001/01/07 15:24:52 guus Exp $ + $Id: list.c,v 1.1.2.9 2001/02/25 15:34:50 guus Exp $ */ #include "config.h" @@ -60,7 +60,7 @@ void list_free_node(list_t *list, list_node_t *node) if(node->data && list->delete) list->delete(node->data); - free(node->data); + free(node); } /* Insertion and deletion */