summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/alist_free.c
blob: 3c1a518804307723c39e4a29c171cef10ce4b641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright (C) 2006 by Darren Reed.
 *
 * See the IPFILTER.LICENCE file for details on licencing.
 *
 * $Id: alist_free.c,v 1.1.2.1 2006/08/25 21:13:04 darrenr Exp $
 */
#include "ipf.h"

void
alist_free(hosts)
alist_t *hosts;
{
	alist_t *a, *next;

	for (a = hosts; a != NULL; a = next) {
		next = a->al_next;
		free(a);
	}
}
OpenPOWER on IntegriCloud