Memory leak fix in SchedulerTest
Merge pull request #6256 from dumganhar/scheudlertest-leak

Memory leak fix in SchedulerTest