summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/adb_free.c
blob: 4c6f8a66ded83be37334fa74193f669b083e0cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
 *
 * $Header$
 * 
 * $Log$
 * Revision 1.8  1996/07/22 20:35:16  marc
 * this commit includes all the changes on the OV_9510_INTEGRATION and
 * OV_MERGE branches.  This includes, but is not limited to, the new openvision
 * admin system, and major changes to gssapi to add functionality, and bring
 * the implementation in line with rfc1964.  before committing, the
 * code was built and tested for netbsd and solaris.
 *
 * Revision 1.7.4.1  1996/07/18 03:08:07  marc
 * merged in changes from OV_9510_BP to OV_9510_FINAL1
 *
 * Revision 1.7.2.1  1996/06/20  02:16:25  marc
 * File added to the repository on a branch
 *
 * Revision 1.7  1996/05/12  06:21:57  marc
 * don't use <absolute paths> for "internal header files"
 *
 * Revision 1.6  1993/12/13  21:15:56  shanzer
 * fixed memory leak
 * .,
 *
 * Revision 1.5  1993/12/06  22:20:37  marc
 * fixup free functions to use xdr to free the underlying struct
 *
 * Revision 1.4  1993/11/15  00:29:46  shanzer
 * check to make sure pointers are somewhat vaid before freeing.
 *
 * Revision 1.3  1993/11/09  04:02:24  shanzer
 * added some includefiles
 * changed bzero to memset
 *
 * Revision 1.2  1993/11/04  01:54:24  shanzer
 * added rcs header ..
 *
 */

#if !defined(lint) && !defined(__CODECENTER__)
static char *rcsid = "$Header$";
#endif

#include	"adb.h"
#include	<memory.h>
#include	<malloc.h>

void
osa_free_princ_ent(osa_princ_ent_t val)
{
    XDR xdrs;

    xdrmem_create(&xdrs, NULL, 0, XDR_FREE);

    xdr_osa_princ_ent_rec(&xdrs, val);
    free(val);
}

void
osa_free_policy_ent(osa_policy_ent_t val)
{
    XDR xdrs;

    xdrmem_create(&xdrs, NULL, 0, XDR_FREE);

    xdr_osa_policy_ent_rec(&xdrs, val);
    free(val);
}