Fixup memory leaks in moose unit
closes #3756
Merge pull request #3831 from permcody/fix_mem_leaks

Fixup memory leaks in moose unit
Merge commit '161c39fe0f2844d85f50e446ff974d7c5cef9197'