1 /* Copyright Massachusetts Institute of Technology 1985 */
2 /* Copyright (C) 2001, 2002, 2003, 2004, 2005,
3 2006, 2007 Free Software Foundation, Inc. */
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation, and that the name of M.I.T. not be used in advertising or
11 publicity pertaining to distribution of the software without specific,
12 written prior permission. M.I.T. makes no representations about the
13 suitability of this software for any purpose. It is provided "as is"
14 without express or implied warranty.
21 * XDestroyAssocTable - Destroy (free the memory associated with)
24 XDestroyAssocTable(table
)
25 register XAssocTable
*table
;
28 register XAssoc
*bucket
;
29 register XAssoc
*Entry
, *entry_next
;
31 /* Free the buckets. */
32 for (i
= 0; i
< table
->size
; i
++) {
33 bucket
= &table
->buckets
[i
];
39 entry_next
= Entry
->next
;
44 /* Free the bucket array. */
45 free((char *)table
->buckets
);
51 /* arch-tag: a536bf02-8d63-45f2-8c1a-c7f9fd4da2cf
52 (do not change this comment) */