/*
list.c -- functions to deal with double linked lists
- Copyright (C) 2000 Ivo Timmermans <itimmermans@bigfoot.com>
- 2000 Guus Sliepen <guus@sliepen.warande.net>
+ Copyright (C) 2000,2001 Ivo Timmermans <itimmermans@bigfoot.com>
+ 2000,2001 Guus Sliepen <guus@sliepen.warande.net>
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
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"
if(node->data && list->delete)
list->delete(node->data);
- free(node->data);
+ free(node);
}
/* Insertion and deletion */