Use size of incoming file when checking if the available disk space is within
the specified threshold.
Fix some makeflow memory leaks as per valgrind.