Fixed valgrind error, flush it
(closes #3710)
Merge pull request #3721 from aeslaughter/valgrind-3710

Fixed valgrind error