]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ipfilter/lib/alist_free.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ipfilter / lib / alist_free.c
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: alist_free.c,v 1.3.2.2 2012/07/22 08:04:24 darren_r Exp $
7  */
8 #include "ipf.h"
9
10 void
11 alist_free(hosts)
12         alist_t *hosts;
13 {
14         alist_t *a, *next;
15
16         for (a = hosts; a != NULL; a = next) {
17                 next = a->al_next;
18                 free(a);
19         }
20 }