ypclnt_free.c revision 267654
156055Srwatson/*- 2108410Srwatson * Copyright (c) 2002 Networks Associates Technology, Inc. 356055Srwatson * All rights reserved. 456055Srwatson * 5108410Srwatson * This software was developed for the FreeBSD Project by ThinkSec AS and 6108410Srwatson * NAI Labs, the Security Research Division of Network Associates, Inc. 756055Srwatson * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 856055Srwatson * DARPA CHATS research program. 956055Srwatson * 1056055Srwatson * Redistribution and use in source and binary forms, with or without 1156055Srwatson * modification, are permitted provided that the following conditions 1256055Srwatson * are met: 1356055Srwatson * 1. Redistributions of source code must retain the above copyright 1456055Srwatson * notice, this list of conditions and the following disclaimer. 1556055Srwatson * 2. Redistributions in binary form must reproduce the above copyright 1656055Srwatson * notice, this list of conditions and the following disclaimer in the 1756055Srwatson * documentation and/or other materials provided with the distribution. 1856055Srwatson * 3. The name of the author may not be used to endorse or promote 1956055Srwatson * products derived from this software without specific prior written 2056055Srwatson * permission. 2156055Srwatson * 2256055Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2356055Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2456055Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2556055Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2656055Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2756055Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2856055Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2956055Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3056055Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3156055Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3292986Sobrien * SUCH DAMAGE. 3392986Sobrien * 3492986Sobrien * $FreeBSD: releng/9.3/lib/libypclnt/ypclnt_free.c 94575 2002-04-13 06:20:02Z des $ 3556055Srwatson */ 3675185Stmm 3756055Srwatson#include <stdlib.h> 3875185Stmm 3956055Srwatson#include "ypclnt.h" 4091033Sjedgar 4156055Srwatsonvoid 4256055Srwatsonypclnt_free(ypclnt_t *ypclnt) 4356055Srwatson{ 4456055Srwatson if (ypclnt != NULL) { 4556055Srwatson free(ypclnt->domain); 4656055Srwatson free(ypclnt->map); 4756055Srwatson free(ypclnt->server); 4856055Srwatson free(ypclnt->error); 4974191Srwatson free(ypclnt); 5056760Srwatson } 5156055Srwatson} 5256055Srwatson