141edb306SCy Schubert /* 241edb306SCy Schubert * Copyright (C) 2012 by Darren Reed. 341edb306SCy Schubert * 441edb306SCy Schubert * See the IPFILTER.LICENCE file for details on licencing. 541edb306SCy Schubert * 641edb306SCy Schubert * $Id: alist_free.c,v 1.3.2.2 2012/07/22 08:04:24 darren_r Exp $ 741edb306SCy Schubert */ 841edb306SCy Schubert #include "ipf.h" 941edb306SCy Schubert 1041edb306SCy Schubert void alist_free(alist_t * hosts)11*efeb8bffSCy Schubertalist_free(alist_t *hosts) 1241edb306SCy Schubert { 1341edb306SCy Schubert alist_t *a, *next; 1441edb306SCy Schubert 1541edb306SCy Schubert for (a = hosts; a != NULL; a = next) { 1641edb306SCy Schubert next = a->al_next; 1741edb306SCy Schubert free(a); 1841edb306SCy Schubert } 1941edb306SCy Schubert } 20