Fix memory leak during VTS testing
3 files changed