/* * Copyright (C) 2012 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * $Id: alist_free.c,v 1.3.2.2 2012/07/22 08:04:24 darren_r Exp $ */ #include "ipf.h" void alist_free(alist_t *hosts) { alist_t *a, *next; for (a = hosts; a != NULL; a = next) { next = a->al_next; free(a); } }