Plug a memory leak in a unit test. Stack allocation is sufficient here.