fix realloc-of-non-malloced pointer, and reduce size while at it
2 files changed