tests: plug leak in test.

Fixes valgrind back to zero.