Fix a wrong size_t for a memory allocation...  and by extension fix all of
the memory errors in my current Valgrind test case.