1 /* Copyright Massachusetts Institute of Technology 1985 */
8 * XDestroyAssocTable - Destroy (free the memory associated with)
12 XDestroyAssocTable(register XAssocTable
*table
)
15 register XAssoc
*bucket
;
16 register XAssoc
*Entry
, *entry_next
;
18 /* Free the buckets. */
19 for (i
= 0; i
< table
->size
; i
++) {
20 bucket
= &table
->buckets
[i
];
26 entry_next
= Entry
->next
;
31 /* Free the bucket array. */
32 free((char *)table
->buckets
);