Fix malloc bug.

Because the type of buckets is Bucket**, we should have given sizeof(Bucket*)
instead of sizeof(Bucket) to malloc. But sizeof(buckets[0]) is even better
because it's always valid whatever the real type of buckets is.
Simplify.