Correctly grow stream buffer by 50% not 150%
Properly free buffer when stream processing fails or an error occurs after processing
Add test with a small initial buffer
Always grow buffer with at least 1 byte
Fix invalid read from copy paste bug
Fix invalid return value when calloc would fail
Add -Wall to compile flags
Add helper script for running valgrind