main: use calloc instead of malloc, fix free

I did the mistake of assuming the memory I'm getting from the OS is init with 0. That was 4 months ago. I guess this program's about as stable as she gets. The RNG still needs work, but that's for some other day. Maybe I'll rewrite it, it's just a few lines.