free_namedregs(HASHTAB * regs)
{
clear_namedregs(regs);
- /* FIXME: This crashes us on reboots */
- /* hashfree(regs); */
+ hashfree(regs);
}
void
value = (char *) hash_nextentry(regs))
mush_free(value, "namedreg");
- /* FIXME: This is crashign us for some reason.. */
- /* hashflush(regs, 16); */
+ hashflush(regs, 16);
}
void
}
htab->entries = 0;
size = next_prime_after(size);
- resized = mush_realloc(htab->buckets, size, "hash.buckets");
+ resized = mush_realloc(htab->buckets, size * sizeof(struct hash_bucket), "hash.buckets");
if (resized) {
htab->buckets = resized;
htab->hashsize = size;