entry->next = hash[i];
hash[i] = entry++;
hash_count[i]++;
- entries--;
}
}
}
free(hash_count);
- /* If we didn't use all hash entries, free the unused memory. */
- if (entries)
- index = realloc(index, memsize - entries * sizeof(*entry));
-
return index;
}